Struct map_gui::tools::ChooseSomething [−][src]
pub struct ChooseSomething<A: AppLike, T> { panel: Panel, cb: Option<Box<dyn FnOnce(T, &mut EventCtx<'_>, &mut A) -> Transition<A>>>, }
Choose something from a menu, then feed the answer to a callback.
Fields
panel: Panel
cb: Option<Box<dyn FnOnce(T, &mut EventCtx<'_>, &mut A) -> Transition<A>>>
Implementations
impl<A: AppLike + 'static, T: 'static> ChooseSomething<A, T>
[src]
impl<A: AppLike + 'static, T: 'static> ChooseSomething<A, T>
[src]Trait Implementations
impl<A: AppLike + 'static, T: 'static> State<A> for ChooseSomething<A, T>
[src]
impl<A: AppLike + 'static, T: 'static> State<A> for ChooseSomething<A, T>
[src]fn event(&mut self, ctx: &mut EventCtx<'_>, app: &mut A) -> Transition<A>
[src]
fn draw_baselayer(&self) -> DrawBaselayer
[src]
fn draw(&self, g: &mut GfxCtx<'_>, app: &A)
[src]
pub fn on_destroy(&mut self, &mut EventCtx<'_>, &mut A)
Auto Trait Implementations
impl<A, T> !RefUnwindSafe for ChooseSomething<A, T>
impl<A, T> !Send for ChooseSomething<A, T>
impl<A, T> !Sync for ChooseSomething<A, T>
impl<A, T> Unpin for ChooseSomething<A, T>
impl<A, T> !UnwindSafe for ChooseSomething<A, T>
Blanket Implementations
impl<T> Downcast for T where
T: Any,
impl<T> Downcast for T where
T: Any,
impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,