FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    IScrollProvider

    trait · ferroui-controls · v0.5.0

    trait IScrollProvider
    

    Exposes methods and properties to support access by a UI Automation client to a control that acts as a scrollable container for a collection of child objects.

    View source

    Members

    peer

    fn peer(self: &Self) -> Ref<AutomationPeer>
    

    The automation peer that provides this contract.

    Source

    horizontally_scrollable

    fn horizontally_scrollable(self: &Self) -> bool
    

    Gets a value that indicates whether the control can scroll horizontally.

    Windows: IScrollProvider.HorizontallyScrollable. macOS: no mapping.

    Source

    horizontal_scroll_percent

    fn horizontal_scroll_percent(self: &Self) -> f64
    

    Gets the current horizontal scroll position.

    Windows: IScrollProvider.HorizontalScrollPercent. macOS: no mapping.

    Source

    horizontal_view_size

    fn horizontal_view_size(self: &Self) -> f64
    

    Gets the current horizontal view size.

    Windows: IScrollProvider.HorizontalViewSize. macOS: no mapping.

    Source

    vertically_scrollable

    fn vertically_scrollable(self: &Self) -> bool
    

    Gets a value that indicates whether the control can scroll vertically.

    Windows: IScrollProvider.VerticallyScrollable. macOS: no mapping.

    Source

    vertical_scroll_percent

    fn vertical_scroll_percent(self: &Self) -> f64
    

    Gets the current vertical scroll position.

    Windows: IScrollProvider.VerticalScrollPercent. macOS: no mapping.

    Source

    vertical_view_size

    fn vertical_view_size(self: &Self) -> f64
    

    Gets the vertical view size.

    Windows: IScrollProvider.VerticalViewSize. macOS: no mapping.

    Source

    scroll

    fn scroll(self: &Self, horizontal_amount: ScrollAmount, vertical_amount: ScrollAmount) -> Result<(), AutomationError>
    

    Scrolls the visible region of the content area horizontally and vertically.

    Windows: IScrollProvider.Scroll. macOS: NSAccessibilityProtocol.accessibilityPerformScroll*ByPage (large increments and decrements only).

    Errors

    An AutomationError when the state of the element refuses the call (the exception the member throws in the original).

    Source

    set_scroll_percent

    fn set_scroll_percent(self: &Self, horizontal_percent: f64, vertical_percent: f64) -> Result<(), AutomationError>
    

    Sets the horizontal and vertical scroll position as a percentage of the total content area within the control.

    Windows: IScrollProvider.SetScrollPercent. macOS: no mapping.

    Errors

    An AutomationError when the state of the element refuses the call (the exception the member throws in the original).

    Source

    Trait implementations

    Availability

    Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.