pub trait Controller {
    fn handle_key(&mut self, ev: KeyEvent);

    fn handle_focus_gained(&mut self) { ... }
    fn handle_focus_lost(&mut self) { ... }
    fn handle_mouse(&mut self, ev: MouseEvent) { ... }
    fn handle_paste(&mut self, data: String) { ... }
    fn handle_resize(&mut self, x: u16, y: u16) { ... }
    fn should_quit(&self) -> bool { ... }
    fn on_tick(&mut self) { ... }
}

Required Methods§

Provided Methods§

Implementors§