use crate::*; pub trait WindowController { fn title(&self) -> String { String::from("Phosphor") } fn cursor_icon(&self) -> Option { None } fn initial_size(&self) -> Dimensions { Dimensions::new(800,600) } fn minimum_size(&self) -> Option { None } fn maximum_size(&self) -> Option { None } fn pixel_scale(&self) -> u32 { 1 } fn render_request(&self) -> RenderRequest { RenderRequest::None } fn is_visible(&self) -> bool { true } fn is_cursor_visible(&self) -> bool { true } fn is_resizable(&self) -> bool { true } fn on_init(&mut self) {} fn on_resize(&mut self, _size: Dimensions) {} fn on_move(&mut self, _position: Point) {} fn on_focus_change(&mut self, _is_focused: bool) {} fn on_process(&mut self) {} fn on_render(&mut self, _buffer: &mut Buffer, _hint: RenderHint) {} fn on_close_request(&mut self) {} fn on_close(&mut self) {} fn on_cursor_enter(&mut self) {} fn on_cursor_exit(&mut self) {} fn on_cursor_move(&mut self, _position: Point) {} fn on_left_mouse_button(&mut self, _action: Action) {} fn on_middle_mouse_button(&mut self, _action: Action) {} fn on_right_mouse_button(&mut self, _action: Action) {} fn on_line_scroll_horizontal(&mut self, _delta: f64) {} fn on_line_scroll_vertical(&mut self, _delta: f64) {} fn on_pixel_scroll_horizontal(&mut self, _delta: f64) {} fn on_pixel_scroll_vertical(&mut self, _delta: f64) {} fn on_keyboard_input(&mut self, _input: KeyboardInput) {} fn on_keyboard_modifier_change(&mut self, _modifiers: ModifiersState) {} fn on_character_input(&mut self, _character: char) {} fn on_file_hover(&mut self, _path: std::path::PathBuf) {} fn on_file_hover_cancel(&mut self) {} fn on_file_drop(&mut self, _path: std::path::PathBuf) {} }