classicube_helpers\events/
window.rs

1use crate::make_event_handler;
2
3make_event_handler!(
4    /// Window contents invalidated and will need to be redrawn
5    Window,
6    RedrawNeeded,
7    Void,
8    ()
9);
10
11make_event_handler!(
12    /// Window is resized
13    Window,
14    Resized,
15    Void,
16    ()
17);
18
19make_event_handler!(
20    /// Window is about to close (should free resources/save state/etc here)
21    Window,
22    Closing,
23    Void,
24    ()
25);
26
27make_event_handler!(
28    /// Focus of the window changed
29    Window,
30    FocusChanged,
31    Void,
32    ()
33);
34
35make_event_handler!(
36    /// State of the window changed (e.g. minimised, fullscreen)
37    Window,
38    StateChanged,
39    Void,
40    ()
41);
42
43make_event_handler!(
44    /// Window has been created, Window_Handle is valid now.
45    Window,
46    Created,
47    Void,
48    ()
49);
50
51make_event_handler!(
52    /// Inactive/background state of the window changed
53    Window,
54    InactiveChanged,
55    Void,
56    ()
57);
58
59make_event_handler!(
60    /// Window contents should be redrawn (as they are about to be displayed)
61    Window,
62    Redrawing,
63    Void,
64    ()
65);