[−][src]Trait widgetry::app_state::SharedAppState
Any data that should last the entire lifetime of the application should be stored in the struct implementing this trait.
Provided methods
fn before_event(&mut self)
Before State::event
is called, call this.
fn draw_default(&self, _: &mut GfxCtx<'_>)
When DrawBaselayer::DefaultDraw is called, run this.
fn dump_before_abort(&self, _: &Canvas)
Will be called if State::event
or State::draw
panics.
fn before_quit(&self, _: &Canvas)
Called before a normal exit, like window close