App

Trait App 

Source
pub trait App {
    // Required methods
    fn update(
        &mut self,
        delta: f32,
        input: &Input,
        widgets: &mut Widgets,
    ) -> bool;
    fn draw(
        &mut self,
        canvas: &mut Canvas<Window>,
        text_drawer: &mut TextDrawer,
    );
}

Required Methods§

Source

fn update(&mut self, delta: f32, input: &Input, widgets: &mut Widgets) -> bool

Source

fn draw(&mut self, canvas: &mut Canvas<Window>, text_drawer: &mut TextDrawer)

Implementors§