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§
sourcefn is_selected(&self, n: usize) -> bool
fn is_selected(&self, n: usize) -> bool
Is selected.
sourcefn lead_selection(&self) -> Option<usize>
fn lead_selection(&self) -> Option<usize>
Selection lead.
Provided Methods§
sourcefn scroll_selected(&self) -> bool
fn scroll_selected(&self) -> bool
Scroll the selection instead of the offset.