Skip to main content

ScrollableHandle

Trait ScrollableHandle 

Source
pub trait ScrollableHandle:
    'static
    + Any
    + Sized
    + Clone {
    // Required methods
    fn max_offset(&self) -> Point<Pixels>;
    fn set_offset(&self, point: Point<Pixels>);
    fn offset(&self) -> Point<Pixels>;
    fn viewport(&self) -> Bounds<Pixels>;

    // Provided methods
    fn drag_started(&self) { ... }
    fn drag_ended(&self) { ... }
    fn scrollable_along(&self, axis: ScrollbarAxis) -> bool { ... }
    fn content_size(&self) -> Size<Pixels> { ... }
}

Required Methods§

Source

fn max_offset(&self) -> Point<Pixels>

Source

fn set_offset(&self, point: Point<Pixels>)

Source

fn offset(&self) -> Point<Pixels>

Source

fn viewport(&self) -> Bounds<Pixels>

Provided Methods§

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl ScrollableHandle for ListState

Source§

impl ScrollableHandle for ScrollHandle

Source§

impl ScrollableHandle for UniformListScrollHandle

Implementors§