1 | /*********************************************************************** |
---|
2 | EventArgs |
---|
3 | ***********************************************************************/ |
---|
4 | class EventArgs |
---|
5 | { |
---|
6 | bool handled; |
---|
7 | |
---|
8 | EventArgs(); |
---|
9 | }; |
---|
10 | |
---|
11 | |
---|
12 | |
---|
13 | /*********************************************************************** |
---|
14 | MouseCursorEventArgs |
---|
15 | ***********************************************************************/ |
---|
16 | class MouseCursorEventArgs : public EventArgs |
---|
17 | { |
---|
18 | MouseCursor* mouseCursor; |
---|
19 | const Image* image; |
---|
20 | |
---|
21 | MouseCursorEventArgs(MouseCursor* cursor); |
---|
22 | }; |
---|
23 | |
---|
24 | |
---|
25 | |
---|
26 | /*********************************************************************** |
---|
27 | WindowEventArgs |
---|
28 | ***********************************************************************/ |
---|
29 | class WindowEventArgs : public EventArgs |
---|
30 | { |
---|
31 | Window* window; |
---|
32 | |
---|
33 | WindowEventArgs(Window* wnd); |
---|
34 | }; |
---|
35 | |
---|
36 | |
---|
37 | |
---|
38 | /*********************************************************************** |
---|
39 | ActivationEventArgs |
---|
40 | ***********************************************************************/ |
---|
41 | class ActivationEventArgs : public WindowEventArgs |
---|
42 | { |
---|
43 | Window* otherWindow; |
---|
44 | |
---|
45 | ActivationEventArgs(Window* wnd); |
---|
46 | }; |
---|
47 | |
---|
48 | |
---|
49 | |
---|
50 | /*********************************************************************** |
---|
51 | HeaderSequenceEventArgs |
---|
52 | ***********************************************************************/ |
---|
53 | class HeaderSequenceEventArgs : public WindowEventArgs |
---|
54 | { |
---|
55 | // remove 'd_' member variable prefix |
---|
56 | unsigned int d_oldIdx @ oldIdx; |
---|
57 | unsigned int d_newIdx @ newIdx; |
---|
58 | |
---|
59 | HeaderSequenceEventArgs(Window* wnd, unsigned int old_index, unsigned int new_index); |
---|
60 | }; |
---|
61 | |
---|
62 | |
---|
63 | |
---|
64 | /*********************************************************************** |
---|
65 | MouseButton |
---|
66 | ***********************************************************************/ |
---|
67 | enum MouseButton |
---|
68 | { |
---|
69 | LeftButton, |
---|
70 | RightButton, |
---|
71 | MiddleButton, |
---|
72 | X1Button, |
---|
73 | X2Button, |
---|
74 | MouseButtonCount, |
---|
75 | NoButton |
---|
76 | }; |
---|
77 | |
---|
78 | |
---|
79 | |
---|
80 | /*********************************************************************** |
---|
81 | MouseEventArgs |
---|
82 | ***********************************************************************/ |
---|
83 | class MouseEventArgs : public WindowEventArgs |
---|
84 | { |
---|
85 | Vector2 position; |
---|
86 | Vector2 moveDelta; |
---|
87 | MouseButton button; |
---|
88 | unsigned int sysKeys; |
---|
89 | float wheelChange; |
---|
90 | |
---|
91 | MouseEventArgs(Window* wnd); |
---|
92 | }; |
---|
93 | |
---|
94 | |
---|
95 | |
---|
96 | /*********************************************************************** |
---|
97 | KeyEventArgs |
---|
98 | ***********************************************************************/ |
---|
99 | class KeyEventArgs : public WindowEventArgs |
---|
100 | { |
---|
101 | unsigned long codepoint; |
---|
102 | Key::Scan scancode; |
---|
103 | unsigned int sysKeys; |
---|
104 | |
---|
105 | KeyEventArgs(Window* wnd); |
---|
106 | }; |
---|
107 | |
---|
108 | |
---|
109 | |
---|
110 | /************************************************************************ |
---|
111 | DragDropEventArgs |
---|
112 | *************************************************************************/ |
---|
113 | class DragDropEventArgs : public WindowEventArgs |
---|
114 | { |
---|
115 | DragContainer* dragDropItem; |
---|
116 | |
---|
117 | DragDropEventArgs(Window* wnd); |
---|
118 | }; |
---|