[−][src]Trait cat_engine::WindowPage
Типаж для создания страниц окна. A trait for implementing window pages.
Associated Types
Loading content...Required methods
fn on_window_close_requested(&mut self, window: &mut Self::Window)
Called when the window has been requested to close.
fn on_update_requested(&mut self, window: &mut Self::Window)
feature != "lazy"
fn on_redraw_requested(&mut self, window: &mut Self::Window)
fn on_mouse_pressed(&mut self, window: &mut Self::Window, button: MouseButton)
fn on_mouse_released(&mut self, window: &mut Self::Window, button: MouseButton)
fn on_mouse_scrolled(
&mut self,
window: &mut Self::Window,
scroll: MouseScrollDelta
)
&mut self,
window: &mut Self::Window,
scroll: MouseScrollDelta
)
fn on_mouse_moved(&mut self, window: &mut Self::Window, position: [f32; 2])
fn on_keyboard_pressed(
&mut self,
window: &mut Self::Window,
button: KeyboardButton
)
&mut self,
window: &mut Self::Window,
button: KeyboardButton
)
fn on_keyboard_released(
&mut self,
window: &mut Self::Window,
button: KeyboardButton
)
&mut self,
window: &mut Self::Window,
button: KeyboardButton
)
fn on_character_recieved(&mut self, window: &mut Self::Window, character: char)
fn on_window_resized(&mut self, window: &mut Self::Window, new_size: [u32; 2])
fn on_window_moved(&mut self, window: &mut Self::Window, position: [i32; 2])
fn on_window_focused(&mut self, window: &mut Self::Window, focused: bool)
fn on_suspended(&mut self, window: &mut Self::Window)
fn on_resumed(&mut self, window: &mut Self::Window)
fn on_modifiers_changed(
&mut self,
window: &mut Self::Window,
modifiers: ModifiersState
)
&mut self,
window: &mut Self::Window,
modifiers: ModifiersState
)
fn on_file_dropped(&mut self, window: &mut Self::Window, path: PathBuf)
feature = "file_drop"
fn on_file_hovered(&mut self, window: &mut Self::Window, path: PathBuf)
feature = "file_drop"
fn on_file_hovered_canceled(&mut self, window: &mut Self::Window)
feature = "file_drop"
fn on_event_loop_closed(&mut self, window: &mut Self::Window) -> Self::Output
Event loop has been stopped.
The page closes after this function is called.