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 [
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 providedAbsoluteOffset
. - scroll_
to - Scrolls the scrollable with the given [
Id
] to the providedAbsoluteOffset
. - select_
all - Selects all the content of the widget with the given [
Id
]. - snap_to
- Snaps the scrollable with the given [
Id
] to the providedRelativeOffset
. - snap_
to_ end - Snaps the scrollable with the given [
Id
] to theRelativeOffset::END
.