Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/buildsystem2/src/ceguilua/ceguilua-0.5.0/package/InputEvent.pkg @ 2610

Last change on this file since 2610 was 2608, checked in by rgrieder, 16 years ago

Large cleanup in CEGUILua:

  • Removed the heavy 1.7MB bind files and added the small pkg files from the CEGUI source instead
  • Those pkg files get copied version incrementally (starting with 0.5.0) to the binary dir. That saves a lot of files when having 4 different versions.
  • Added support for CEGUI 0.6.0 and 0.6.2
  • Added library info files
  • CEGUILua 0.5.0 finally supports Lua 5.1 too That means all version support both Lua 5.0 and 5.1
  • Added unified diffs with the changes to the CEGUILua source
  • Property svn:eol-style set to native
File size: 2.7 KB
Line 
1/***********************************************************************
2        EventArgs
3***********************************************************************/
4class EventArgs
5{
6        bool handled;
7
8        EventArgs();
9};
10
11
12
13/***********************************************************************
14        MouseCursorEventArgs
15***********************************************************************/
16class MouseCursorEventArgs : public EventArgs
17{
18        MouseCursor* mouseCursor;
19        const Image* image;
20
21        MouseCursorEventArgs(MouseCursor* cursor);
22};
23
24
25
26/***********************************************************************
27        WindowEventArgs
28***********************************************************************/
29class WindowEventArgs : public EventArgs
30{
31        Window* window;
32
33        WindowEventArgs(Window* wnd);
34};
35
36
37
38/***********************************************************************
39        ActivationEventArgs
40***********************************************************************/
41class ActivationEventArgs : public WindowEventArgs
42{
43        Window* otherWindow;
44
45        ActivationEventArgs(Window* wnd);
46};
47
48
49
50/***********************************************************************
51        HeaderSequenceEventArgs
52***********************************************************************/
53class 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***********************************************************************/
67enum MouseButton
68{
69        LeftButton,
70        RightButton,
71        MiddleButton,
72        X1Button,
73        X2Button,
74        MouseButtonCount,
75        NoButton
76};
77
78
79
80/***********************************************************************
81        MouseEventArgs
82***********************************************************************/
83class 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***********************************************************************/
99class 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*************************************************************************/
113class DragDropEventArgs : public WindowEventArgs
114{
115    DragContainer* dragDropItem;
116
117    DragDropEventArgs(Window* wnd);
118};
Note: See TracBrowser for help on using the repository browser.