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
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Mode for Single
[src]
type Selection = usize
The data associated with the Mode
s 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
_: 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
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.