summaryrefslogtreecommitdiff
path: root/plugingui/eventhandler.h
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2013-05-08 14:56:19 +0200
committerBent Bisballe Nyeng <deva@aasimon.org>2013-05-08 14:56:19 +0200
commit895c942289c81ca24346d3bb18d2b922ae469554 (patch)
tree58a5ad2ae9ad311bfa59daaa8114a83b5277c3c5 /plugingui/eventhandler.h
parent8cacd4e097bb969fe6de20d88e98763deef658e6 (diff)
Remove GlobalContext class. Move all native code from EventHandler class to NativeWindowX11 and NativeWindowWin32 classes.
Diffstat (limited to 'plugingui/eventhandler.h')
-rw-r--r--plugingui/eventhandler.h19
1 files changed, 8 insertions, 11 deletions
diff --git a/plugingui/eventhandler.h b/plugingui/eventhandler.h
index 69586f4..028418d 100644
--- a/plugingui/eventhandler.h
+++ b/plugingui/eventhandler.h
@@ -28,36 +28,33 @@
#define __DRUMGIZMO_EVENTHANDLER_H__
#include "guievent.h"
-#include "globalcontext.h"
-
-#include "window.h"
+#include "nativewindow.h"
+//#include "window.h"
namespace GUI {
+class Window;
class EventHandler {
public:
- EventHandler(GlobalContext *gctx);
+ EventHandler(NativeWindow *native, Window *window);
- void processEvents(Window *window);
+ void processEvents();
bool hasEvent();
Event *getNextEvent();
void registerCloseHandler(void (*handler)(void *), void *ptr);
-#ifdef WIN32
- Event *event;
-#endif/*WIN32*/
-
- GlobalContext *gctx;
-
private:
+ Window *window;
int last_click;
void (*closeHandler)(void *);
void *closeHandlerPtr;
// Used to ignore mouse button release after a double click.
bool last_was_dbl_click;
+
+ NativeWindow *native;
};
};