Equalizer  2.0.0
Parallel Rendering Framework
eventType.h
1 
2 /* Copyright (c) 2016, Stefan.Eilemann@epfl.ch
3  *
4  * This library is free software; you can redistribute it and/or modify it under
5  * the terms of the GNU Lesser General Public License version 2.1 as published
6  * by the Free Software Foundation.
7  *
8  * This library is distributed in the hope that it will be useful, but WITHOUT
9  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
10  * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
11  * details.
12  *
13  * You should have received a copy of the GNU Lesser General Public License
14  * along with this library; if not, write to the Free Software Foundation, Inc.,
15  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
16  */
17 
18 #ifndef EQFABRIC_EVENTTYPE_H
19 #define EQFABRIC_EVENTTYPE_H
20 
21 #include <eq/fabric/api.h>
22 #include <lunchbox/types.h>
23 
24 namespace eq
25 {
26 namespace fabric
27 {
28 namespace eventTypes
29 {
31 enum EventType // Also update string table in event.cpp
32 {
33  // SizeEvent
34  EVENT_WINDOW_RESIZE,
35  EVENT_WINDOW_SHOW,
36  EVENT_CHANNEL_RESIZE,
37  EVENT_VIEW_RESIZE,
38 
39  // PointerEvent
40  EVENT_CHANNEL_POINTER_MOTION = 10,
41  EVENT_CHANNEL_POINTER_BUTTON_PRESS,
42  EVENT_CHANNEL_POINTER_BUTTON_RELEASE,
43  EVENT_CHANNEL_POINTER_WHEEL,
44  EVENT_WINDOW_POINTER_WHEEL,
45  EVENT_WINDOW_POINTER_MOTION,
46  EVENT_WINDOW_POINTER_BUTTON_PRESS,
47  EVENT_WINDOW_POINTER_BUTTON_RELEASE,
48 
49  // KeyEvent
50  EVENT_KEY_PRESS = 20,
51  EVENT_KEY_RELEASE,
52 
53  EVENT_MAGELLAN_AXIS = 30,
54  EVENT_MAGELLAN_BUTTON,
55 
56  // Stateless Events
57  EVENT_WINDOW_CLOSE = 40,
58  EVENT_WINDOW_HIDE,
59  EVENT_WINDOW_EXPOSE,
60  EVENT_EXIT,
61 
62  EVENT_STATISTIC,
63 
65  EVENT_WINDOW_POINTER_GRAB,
67  EVENT_WINDOW_POINTER_UNGRAB,
68 
69 
74  EVENT_OBSERVER_MOTION,
75 
80  EVENT_CONFIG_ERROR = 50,
81  EVENT_NODE_ERROR,
82  EVENT_PIPE_ERROR,
83  EVENT_WINDOW_ERROR,
84  EVENT_CHANNEL_ERROR,
85 
86  // todo
87  EVENT_NODE_TIMEOUT,
88  EVENT_WINDOW_SCREENSAVER,
89 
90  EVENT_UNKNOWN,
91 
93  EVENT_USER,
94  EVENT_ALL // must be last
95 };
96 
98 EQFABRIC_API std::ostream& operator << ( std::ostream&, const EventType& );
99 
100 }
101 }
102 }
103 
104 #endif // EQFABRIC_EVENTTYPE_H
Defines export visibility macros for library EqualizerFabric.
The Equalizer client library.
Definition: eq/agl/types.h:23
std::ostream & operator<<(std::ostream &os, const AxisEvent &event)
Print the axis event to the given output stream.
Definition: axisEvent.h:42