Scrollable

Trait Scrollable 

Source
pub trait Scrollable {
    // Required methods
    fn message_scroll_state(&mut self) -> &mut ScrollState;
    fn task_scroll_state(&mut self) -> &mut ScrollState;

    // Provided methods
    fn scroll_up(&mut self, amount: usize) { ... }
    fn scroll_down(&mut self, amount: usize) { ... }
    fn auto_scroll_to_bottom(&mut self) { ... }
    fn scroll_tasks_up(&mut self, amount: usize) { ... }
    fn scroll_tasks_down(&mut self, amount: usize) { ... }
}
Expand description

Interface for scrollable components

Required Methods§

Source

fn message_scroll_state(&mut self) -> &mut ScrollState

Get a mutable reference to the message scroll state

Source

fn task_scroll_state(&mut self) -> &mut ScrollState

Get a mutable reference to the task scroll state

Provided Methods§

Source

fn scroll_up(&mut self, amount: usize)

Scroll message view up by amount

Source

fn scroll_down(&mut self, amount: usize)

Scroll message view down by amount

Source

fn auto_scroll_to_bottom(&mut self)

Auto scroll messages to bottom

Source

fn scroll_tasks_up(&mut self, amount: usize)

Scroll task list up by amount

Source

fn scroll_tasks_down(&mut self, amount: usize)

Scroll task list down by amount

Implementors§