Module scrollable
Expand description
Operations for widgets that can scroll.
Structs§
- Absolute
Offset - The amount of absolute offset in each direction of a
Scrollable. - Relative
Offset - The amount of relative offset in each direction of a
Scrollable.
Functions§
- scroll_
by - Scrolls the scrollable with the given
Idby the providedAbsoluteOffset. - scroll_
to - Scrolls the scrollable with the given
Idto the providedAbsoluteOffset. - snap_to
- Snaps the scrollable with the given
Idto the providedRelativeOffset. - snap_
to_ end - Snaps the scrollable with the given
Idto theRelativeOffset::END.