1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
#[cfg(feature = "raw_input")]
use crate::raw_input;
use crate::{device::*, geometry::*, ime::*, window::Window};
use std::path::Path;
pub trait EventHandler {
fn idle(&mut self) {}
fn begin_frame(&mut self) {}
fn end_frame(&mut self) {}
fn draw(&mut self, _: &Window) {}
fn activated(&mut self, _: &Window) {}
fn inactivated(&mut self, _: &Window) {}
fn closed(&mut self, _: &Window) {}
fn moved(&mut self, _: &Window, _: ScreenPosition) {}
fn resizing(&mut self, _: &Window, _: PhysicalSize<u32>) {}
fn resized(&mut self, _: &Window, _: PhysicalSize<u32>) {}
fn dpi_changed(&mut self, _: &Window) {}
fn mouse_input(&mut self, _: &Window, _: MouseButton, _: KeyState, _: MouseState) {}
fn cursor_moved(&mut self, _: &Window, _: MouseState) {}
fn cursor_entered(&mut self, _: &Window, _: MouseState) {}
fn cursor_leaved(&mut self, _: &Window, _: MouseState) {}
fn key_input(&mut self, _: &Window, _: KeyCode, _: KeyState, _: bool) {}
fn char_input(&mut self, _: &Window, _: char) {}
fn ime_start_composition(&mut self, _: &Window) {}
fn ime_composition(&mut self, _: &Window, _: &Composition, _: Option<&CandidateList>) {}
fn ime_end_composition(&mut self, _: &Window, _: Option<&str>) {}
fn drop_files(&mut self, _: &Window, _: &[&Path], _: PhysicalPosition<f32>) {}
#[cfg(feature = "raw_input")]
fn raw_input(&mut self, _: &Window, _: &raw_input::InputData) {}
#[cfg(feature = "raw_input")]
fn raw_input_device_change(
&mut self,
_: &Window,
_: &raw_input::Device,
_: raw_input::DeviceChangeState,
) {
}
}