Struct widgetry::Autocomplete [−][src]
pub struct Autocomplete<T: Clone> { choices: Vec<(String, Vec<T>)>, tb: TextBox, menu: Menu<()>, current_line: String, chosen_values: Option<Vec<T>>, }
Fields
choices: Vec<(String, Vec<T>)>
tb: TextBox
current_line: String
chosen_values: Option<Vec<T>>
Implementations
impl<T: 'static + Clone + Ord> Autocomplete<T>
[src]
impl<T: 'static + Clone + Ord> Autocomplete<T>
[src]impl<T: 'static + Clone> Autocomplete<T>
[src]
impl<T: 'static + Clone> Autocomplete<T>
[src]pub fn final_value(&self) -> Option<Vec<T>>
[src]
fn recalc_menu(&mut self, ctx: &mut EventCtx<'_>)
[src]
Trait Implementations
impl<T: 'static + Clone> WidgetImpl for Autocomplete<T>
[src]
impl<T: 'static + Clone> WidgetImpl for Autocomplete<T>
[src]fn get_dims(&self) -> ScreenDims
[src]
fn set_pos(&mut self, top_left: ScreenPt)
[src]
fn event(&mut self, ctx: &mut EventCtx<'_>, output: &mut WidgetOutput)
[src]
fn draw(&self, g: &mut GfxCtx<'_>)
[src]
fn can_restore(&self) -> bool
[src]
fn restore(&mut self, _: &mut EventCtx<'_>, _prev: &dyn WidgetImpl)
[src]
Auto Trait Implementations
impl<T> RefUnwindSafe for Autocomplete<T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
impl<T> Send for Autocomplete<T> where
T: Send,
T: Send,
impl<T> Sync for Autocomplete<T> where
T: Sync,
T: Sync,
impl<T> Unpin for Autocomplete<T> where
T: Unpin,
T: Unpin,
impl<T> UnwindSafe for Autocomplete<T> where
T: UnwindSafe,
T: UnwindSafe,