Struct widgetry::widgets::menu::Menu [−][src]
pub struct Menu<T> { choices: Vec<Choice<T>>, current_idx: usize, pub(crate) top_left: ScreenPt, dims: ScreenDims, }
Fields
choices: Vec<Choice<T>>
current_idx: usize
top_left: ScreenPt
dims: ScreenDims
Implementations
impl<T: 'static> Menu<T>
[src]
impl<T: 'static> Menu<T>
[src]Trait Implementations
impl<T: 'static> WidgetImpl for Menu<T>
[src]
impl<T: 'static> WidgetImpl for Menu<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 Menu<T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
impl<T> Send for Menu<T> where
T: Send,
T: Send,
impl<T> Sync for Menu<T> where
T: Sync,
T: Sync,
impl<T> Unpin for Menu<T> where
T: Unpin,
T: Unpin,
impl<T> UnwindSafe for Menu<T> where
T: UnwindSafe,
T: UnwindSafe,