[−][src]Trait egui::app::App
Implement this trait to write apps that can be compiled both natively using the egui_glium crate,
and deployed as a web site using the egui_web crate.
Required methods
fn ui(
&mut self,
ctx: &Arc<Context>,
integration_context: &mut IntegrationContext<'_>
)
&mut self,
ctx: &Arc<Context>,
integration_context: &mut IntegrationContext<'_>
)
Called each time the UI needs repainting, which may be many times per second.
Put your widgets into a SidePanel, TopPanel, CentralPanel, Window or Area.
Provided methods
fn setup(&mut self, _ctx: &Arc<Context>)
Called once before the first frame.
Allows you to do setup code and to call ctx.set_fonts().
Optional.
fn on_exit(&mut self, _storage: &mut dyn Storage)
Called once on shutdown. Allows you to save state.
Implementors
impl App for DemoApp[src]
fn ui(
&mut self,
ctx: &Arc<Context>,
integration_context: &mut IntegrationContext<'_>
)[src]
&mut self,
ctx: &Arc<Context>,
integration_context: &mut IntegrationContext<'_>
)