Skip to content

ui::ScrollProvider

Header: winui/ui/Automation.hpp.

The Scroll pattern: how far a view is scrolled (Scroll, VirtualList, TableView). Implement every member.

scroll_horizontal_percent

virtual float scroll_horizontal_percent() const = 0

Percent scrolled horizontally in [0, 100], or -1 when that axis does not scroll (0 is scrollable, at the start).

scroll_vertical_percent

virtual float scroll_vertical_percent() const = 0

As scroll_horizontal_percent(), for the vertical axis.

set_scroll_percent

virtual bool set_scroll_percent(float horizontal, float vertical) = 0

Scroll each axis to a percentage in [0, 100]; -1 leaves that axis alone. True when it scrolled.

~ScrollProvider

~ScrollProvider() = default