Struct conrod::DropDownList
[−]
[src]
pub struct DropDownList<'a, F> { // some fields omitted }
Displays a given Vec<String>
as a selectable drop down menu. It's reaction is triggered upon
selection of a list item.
Methods
impl<'a, F> DropDownList<'a, F>
fn new(strings: &'a mut Vec<String>, selected: &'a mut Option<Idx>) -> DropDownList<'a, F>
Construct a new DropDownList.
fn react(self, reaction: F) -> DropDownList<'a, F>
Set the DropDownList's reaction. It will be triggered upon selection of a list item.
fn set<C>(self, ui_id: UiId, ui: &mut Ui<C>) where C: CharacterCache, F: FnMut(&mut Option<Idx>, Idx, String)
After building the DropDownList, use this method to set its current state into the given
Ui
. It will use this state for rendering the next time ui.draw(graphics)
is called.