Module operation

Module operation 

Source
Expand description

Change internal widget state.

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§

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 [Id] is focused or not.
move_cursor_to
Moves the cursor of the widget with the given [Id] to the provided position.
move_cursor_to_end
Moves the cursor of the widget with the given [Id] to the end.
move_cursor_to_front
Moves the cursor of the widget with the given [Id] to the front.
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.
select_all
Selects all the content of the widget with the given [Id].
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.