Struct widgetry::widgets::dropdown::Dropdown [−][src]
pub struct Dropdown<T: Clone> { current_idx: usize, btn: Button, menu: Option<Menu<usize>>, label: String, is_persisten_split: bool, choices: Vec<Choice<T>>, }
Fields
current_idx: usize
btn: Button
label: String
is_persisten_split: bool
choices: Vec<Choice<T>>
Implementations
impl<T: 'static + PartialEq + Clone + Debug> Dropdown<T>
[src]
impl<T: 'static + PartialEq + Clone + Debug> Dropdown<T>
[src]impl<T: 'static + PartialEq + Clone> Dropdown<T>
[src]
impl<T: 'static + PartialEq + Clone> Dropdown<T>
[src]pub fn current_value(&self) -> T
[src]
pub(crate) fn current_value_label(&self) -> &str
[src]
Trait Implementations
impl<T: 'static + Clone> WidgetImpl for Dropdown<T>
[src]
impl<T: 'static + Clone> WidgetImpl for Dropdown<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, ctx: &mut EventCtx<'_>, prev: &dyn WidgetImpl)
[src]
Auto Trait Implementations
impl<T> !RefUnwindSafe for Dropdown<T>
impl<T> !Send for Dropdown<T>
impl<T> !Sync for Dropdown<T>
impl<T> Unpin for Dropdown<T> where
T: Unpin,
T: Unpin,
impl<T> UnwindSafe for Dropdown<T> where
T: UnwindSafe,
T: UnwindSafe,