summaryrefslogtreecommitdiff
path: root/plugingui/nativewindow.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/nativewindow.h
parent8cacd4e097bb969fe6de20d88e98763deef658e6 (diff)
Remove GlobalContext class. Move all native code from EventHandler class to NativeWindowX11 and NativeWindowWin32 classes.
Diffstat (limited to 'plugingui/nativewindow.h')
-rw-r--r--plugingui/nativewindow.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/plugingui/nativewindow.h b/plugingui/nativewindow.h
index 848a761..f27989f 100644
--- a/plugingui/nativewindow.h
+++ b/plugingui/nativewindow.h
@@ -29,13 +29,13 @@
#include <string>
-#include "globalcontext.h"
+#include "guievent.h"
namespace GUI {
class NativeWindow {
public:
- NativeWindow(GlobalContext *c) : gctx(c) {}
+ NativeWindow() {}
virtual ~NativeWindow() {}
virtual void resize(int width, int height) = 0;
@@ -47,8 +47,8 @@ public:
virtual void redraw() = 0;
virtual void grabMouse(bool grab) = 0;
-protected:
- GlobalContext *gctx;
+ virtual bool hasEvent() = 0;
+ virtual Event *getNextEvent() = 0;
};
};