iced::advanced::widget::operation

Module scrollable

Source
Available on crate feature advanced only.
Expand description

Operate on widgets that can be scrolled.

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.

Traits§

Scrollable
The internal state of a widget that can be scrolled.

Functions§

scroll_by
Produces an Operation that scrolls the widget with the given Id by the provided AbsoluteOffset.
scroll_to
Produces an Operation that scrolls the widget with the given Id to the provided AbsoluteOffset.
snap_to
Produces an Operation that snaps the widget with the given Id to the provided percentage.