Trait conrod::widget::list_select::Mode [] [src]

pub trait Mode {
    type Selection;
    fn click_selection<F>(&self,
                      Click,
                      i: usize,
                      num_items: usize,
                      &State,
                      is_selected: F,
                      &mut PendingEvents<Self::Selection>) where F: Fn(usize) -> bool; fn key_selection<F>(&self,
                    KeyPress,
                    i: usize,
                    num_items: usize,
                    &State,
                    is_selected: F,
                    &mut PendingEvents<Self::Selection>) where F: Fn(usize) -> bool; }

Allows the ListSelect to be generic over Single and Multiple selection modes.

Also allows for defining other custom selection modes.

Associated Types

The data associated with the Modes Event::Selection.

Required Methods

Update the PendingEvents in accordance with the given Click event.

Update the PendingEvents in accordance with the given KeyPress event.

Implementors