Equalizer  2.0.0
Parallel Rendering Framework
glx/eventHandler.h
1 
2 /* Copyright (c) 2006-2016, Stefan Eilemann <eile@equalizergraphics.com>
3  * Daniel Nachbaur <danielnachbaur@gmail.com>
4  *
5  * This library is free software; you can redistribute it and/or modify it under
6  * the terms of the GNU Lesser General Public License version 2.1 as published
7  * by the Free Software Foundation.
8  *
9  * This library is distributed in the hope that it will be useful, but WITHOUT
10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11  * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12  * details.
13  *
14  * You should have received a copy of the GNU Lesser General Public License
15  * along with this library; if not, write to the Free Software Foundation, Inc.,
16  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
17  */
18 
19 #ifndef EQ_GLX_EVENTHANDLER_H
20 #define EQ_GLX_EVENTHANDLER_H
21 
22 #include <eq/glx/types.h>
23 #include <eq/eventHandler.h> // base class
24 #include <eq/types.h>
25 
26 #include <lunchbox/thread.h> // thread-safety macro
27 
28 namespace eq
29 {
30 namespace glx
31 {
34 {
35 public:
37  EventHandler( WindowIF* window );
38 
40  virtual ~EventHandler();
41 
49  static void dispatch();
50 
51 private:
52  WindowIF* const _window;
53 
54  bool _magellanUsed;
55 
56  void _dispatch();
57  bool _processEvent( const XEvent& event );
58 
59  LB_TS_VAR( _thread );
60 };
61 }
62 }
63 #endif // EQ_GLX_EVENTHANDLER_H
virtual ~EventHandler()
Destruct the glX event handler.
static void dispatch()
Dispatch all pending events on the current thread.
Base class for window system-specific event handlers.
Definition: eventHandler.h:29
EventHandler()
Construct a new event handler.
Definition: eventHandler.h:33
The Equalizer client library.
Definition: eq/agl/types.h:23
The event handler for glX/X11 windows.
The interface defining the minimum functionality for a glX window.
Definition: glx/window.h:33