Trait App
Source pub trait App {
// Required method
fn new(window: Arc<Window>, render_core: RenderCore) -> Box<Self>
where Self: Sized;
// Provided methods
fn window_resized(&mut self, width: u32, height: u32) { ... }
fn window_close_requested(&mut self, winit_event_loop: &ActiveEventLoop) { ... }
fn window_redraw(&mut self) { ... }
fn mouse_button_input(&mut self, button: MouseButton, state: ElementState) { ... }
fn mouse_wheel_input(&mut self, delta: MouseScrollDelta, phase: TouchPhase) { ... }
fn cursor_moved(&mut self, position: PhysicalPosition<f64>) { ... }
fn cursor_entered_window(&mut self) { ... }
fn cursor_left_window(&mut self) { ... }
fn keyboard_button_input(&mut self, key: Key, state: ElementState) { ... }
}