Struct widgetry::app_state::App [−][src]
pub(crate) struct App<A: SharedAppState> { pub(crate) states: Vec<Box<dyn State<A>>>, pub(crate) shared_app_state: A, }
Fields
states: Vec<Box<dyn State<A>>>
A stack of states
Implementations
impl<A: SharedAppState> App<A>
[src]
impl<A: SharedAppState> App<A>
[src]pub(crate) fn event(&mut self, ctx: &mut EventCtx<'_>)
[src]
pub(crate) fn draw(&self, g: &mut GfxCtx<'_>)
[src]
fn execute_transition(
&mut self,
ctx: &mut EventCtx<'_>,
transition: Transition<A>
) -> bool
[src]
&mut self,
ctx: &mut EventCtx<'_>,
transition: Transition<A>
) -> bool
If true, then the top-most state on the stack needs to be “woken up” with a fake mouseover event.
Auto Trait Implementations
impl<A> !RefUnwindSafe for App<A>
impl<A> !Send for App<A>
impl<A> !Sync for App<A>
impl<A> Unpin for App<A> where
A: Unpin,
A: Unpin,