Module operation
Expand description
Change internal widget state.
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§
- focus
- Focuses the widget with the given
Id. - focus_
next - Focuses the next focusable widget.
- focus_
previous - Focuses the previous focusable widget.
- is_
focused - Returns whether the widget with the given
Idis focused or not. - move_
cursor_ to - Moves the cursor of the widget with the given
Idto the provided position. - move_
cursor_ to_ end - Moves the cursor of the widget with the given
Idto the end. - move_
cursor_ to_ front - Moves the cursor of the widget with the given
Idto the front. - scroll_
by - Scrolls the scrollable with the given
Idby the providedAbsoluteOffset. - scroll_
to - Scrolls the scrollable with the given
Idto the providedAbsoluteOffset. - select_
all - Selects all the content of the widget with the given
Id. - snap_to
- Snaps the scrollable with the given
Idto the providedRelativeOffset. - snap_
to_ end - Snaps the scrollable with the given
Idto theRelativeOffset::END.