Trait wita::EventHandler [−][src]
Trait that must implements for handling events.
Provided methods
fn idle(&mut self)
[src]
This is called when there are no events.
only passed RunType::Idle
to Context::run
.
fn pre_processing(&mut self)
[src]
This is called before a event.
only passed RunType::Idle
to Context::run
.
fn post_processing(&mut self)
[src]
This is called after a event.
only passed RunType::Idle
to Context::run
.
fn draw(&mut self, _: &Window)
[src]
This is called when the window needs redrawing.
fn activated(&mut self, _: &Window)
[src]
This is called when the window has been activated.
fn inactivated(&mut self, _: &Window)
[src]
This is called when the window has been inactivated.
fn closed(&mut self, _: &Window)
[src]
This is called when the window has been closed.
fn moved(&mut self, _: &Window, _: ScreenPosition)
[src]
This is called when the window has been moved.
fn resizing(&mut self, _: &Window, _: PhysicalSize<u32>)
[src]
This is called when the window is resizing.
fn resized(&mut self, _: &Window, _: PhysicalSize<u32>)
[src]
This is called when the window has been resized.
fn dpi_changed(&mut self, _: &Window)
[src]
This is called when the window’s DPI has been changed.
fn mouse_input(
&mut self,
_: &Window,
_: MouseButton,
_: KeyState,
_: MouseState<'_>
)
[src]
&mut self,
_: &Window,
_: MouseButton,
_: KeyState,
_: MouseState<'_>
)
This is called when the mouse button has been pressed and released on the window.
fn cursor_moved(&mut self, _: &Window, _: MouseState<'_>)
[src]
This is called when the cursor has been moved on the window.
fn cursor_entered(&mut self, _: &Window, _: MouseState<'_>)
[src]
This is called when the cursor has been entered the window.
fn cursor_leaved(&mut self, _: &Window, _: MouseState<'_>)
[src]
This is called when the cursor has been leaved the window.
fn key_input(&mut self, _: &Window, _: KeyCode, _: KeyState, _: bool)
[src]
This is called when the keyboard key has been pressed and released.
fn char_input(&mut self, _: &Window, _: char)
[src]
This is called when the keyboard key has been inputed the character.
fn ime_start_composition(&mut self, _: &Window)
[src]
This is called when the IME starts composition.
fn ime_composition(
&mut self,
_: &Window,
_: &Composition,
_: Option<&CandidateList>
)
[src]
&mut self,
_: &Window,
_: &Composition,
_: Option<&CandidateList>
)
This is called when the IME composition status has been changed.
fn ime_end_composition(&mut self, _: &Window, _: Option<&str>)
[src]
This is called when the IME ends composition.
fn drop_files(&mut self, _: &Window, _: &[&Path], _: PhysicalPosition<f32>)
[src]
This is called when files have been dropped on the window.