Skip to main content

Module scrollable

Module scrollable 

Expand description

Operations for widgets that can scroll.

Structs§

AbsoluteOffset
The amount of absolute offset in each direction of a Scrollable.
RelativeOffset
The amount of relative offset in each direction of a Scrollable.

Functions§

scroll_by
Scrolls the scrollable with the given Id by the provided AbsoluteOffset.
scroll_to
Scrolls the scrollable with the given Id to the provided AbsoluteOffset.
snap_to
Snaps the scrollable with the given Id to the provided RelativeOffset.
snap_to_end
Snaps the scrollable with the given Id to the RelativeOffset::END.