Skip to main content

App

Trait App 

Source
pub trait App {
    // Required method
    fn update(&mut self, ctx: &Context, software_backend: &mut SoftwareBackend);

    // Provided method
    fn on_exit(&mut self, _ctx: &Context) { ... }
}
Expand description

Implement this trait to write apps using the optional winit backend similarly to eframe’s App.

Required Methods§

Source

fn update(&mut self, ctx: &Context, software_backend: &mut SoftwareBackend)

Provided Methods§

Source

fn on_exit(&mut self, _ctx: &Context)

Implementors§