Trait rat_widget::list::ListSelection

source ·
pub trait ListSelection {
    // Required methods
    fn is_selected(&self, n: usize) -> bool;
    fn lead_selection(&self) -> Option<usize>;

    // Provided method
    fn scroll_selected(&self) -> bool { ... }
}
Expand description

Trait for list-selection.

Required Methods§

source

fn is_selected(&self, n: usize) -> bool

Is selected.

source

fn lead_selection(&self) -> Option<usize>

Selection lead.

Provided Methods§

source

fn scroll_selected(&self) -> bool

Scroll the selection instead of the offset.

Implementors§