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.
Members
peerhorizontally_scrollablehorizontal_scroll_percenthorizontal_view_sizevertically_scrollablevertical_scroll_percentvertical_view_sizescrollset_scroll_percent
peer
fn peer(self: &Self) -> Ref<AutomationPeer>
The automation peer that provides this contract.
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.
horizontal_scroll_percent
fn horizontal_scroll_percent(self: &Self) -> f64
Gets the current horizontal scroll position.
Windows: IScrollProvider.HorizontalScrollPercent. macOS: no mapping.
horizontal_view_size
fn horizontal_view_size(self: &Self) -> f64
Gets the current horizontal view size.
Windows: IScrollProvider.HorizontalViewSize. macOS: no mapping.
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.
vertical_scroll_percent
fn vertical_scroll_percent(self: &Self) -> f64
Gets the current vertical scroll position.
Windows: IScrollProvider.VerticalScrollPercent. macOS: no mapping.
vertical_view_size
fn vertical_view_size(self: &Self) -> f64
Gets the vertical view size.
Windows: IScrollProvider.VerticalViewSize. macOS: no mapping.
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).
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).
Trait implementations
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.