pub trait Scrollable {
    // Required method
    fn snap_to(&mut self, offset: RelativeOffset);
}
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.

Implementors§