pub trait Scrollable {
    // Required methods
    fn snap_to(&mut self, offset: RelativeOffset);
    fn scroll_to(&mut self, offset: AbsoluteOffset);
}
Available on crate feature advanced only.
Expand description

The internal state of a widget that can be scrolled.

Required Methods§

source

fn snap_to(&mut self, offset: RelativeOffset)

Snaps the scroll of the widget to the given percentage along the horizontal & vertical axis.

source

fn scroll_to(&mut self, offset: AbsoluteOffset)

Scroll the widget to the given AbsoluteOffset along the horizontal & vertical axis.

Implementors§