Struct conrod::widget::list_select::Single
[−]
[src]
pub struct Single;
A single item selection Mode for the ListSelect.
Trait Implementations
impl Copy for Single[src]
impl Clone for Single[src]
fn clone(&self) -> Single[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more
impl Mode for Single[src]
type Selection = usize
The data associated with the Modes Event::Selection.
fn click_selection<F>(
&self,
_: Click,
i: usize,
_num_items: usize,
state: &State,
_is_selected: F,
pending: &mut PendingEvents<Self::Selection>
) where
F: Fn(usize) -> bool, [src]
&self,
_: Click,
i: usize,
_num_items: usize,
state: &State,
_is_selected: F,
pending: &mut PendingEvents<Self::Selection>
) where
F: Fn(usize) -> bool,
Update the PendingEvents in accordance with the given Click event.
fn key_selection<F>(
&self,
press: KeyPress,
_i: usize,
num_items: usize,
state: &State,
_is_selected: F,
pending: &mut PendingEvents<Self::Selection>
) where
F: Fn(usize) -> bool, [src]
&self,
press: KeyPress,
_i: usize,
num_items: usize,
state: &State,
_is_selected: F,
pending: &mut PendingEvents<Self::Selection>
) where
F: Fn(usize) -> bool,
Update the PendingEvents in accordance with the given KeyPress event.