summaryrefslogtreecommitdiff
path: root/plugingui/window.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/window.h
parent8cacd4e097bb969fe6de20d88e98763deef658e6 (diff)
Remove GlobalContext class. Move all native code from EventHandler class to NativeWindowX11 and NativeWindowWin32 classes.
Diffstat (limited to 'plugingui/window.h')
-rw-r--r--plugingui/window.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/plugingui/window.h b/plugingui/window.h
index c9cfe83..2a25d41 100644
--- a/plugingui/window.h
+++ b/plugingui/window.h
@@ -29,17 +29,16 @@
#include "widget.h"
-#include "globalcontext.h"
-
#include "pixelbuffer.h"
#include "nativewindow.h"
#include "image.h"
+#include "eventhandler.h"
namespace GUI {
class Window : public Widget {
public:
- Window(GlobalContext *gctx);
+ Window();
~Window();
void show();
@@ -66,6 +65,8 @@ public:
Window *window();
+ EventHandler *eventHandler();
+
// handlers
virtual void redraw();
void resized(size_t w, size_t h);
@@ -79,8 +80,6 @@ public:
Widget *mouseFocus();
void setMouseFocus(Widget *widget);
- GlobalContext *gctx;
-
PixelBuffer wpixbuf;
void updateBuffer();
@@ -92,6 +91,7 @@ protected:
Widget *_mouseFocus;
NativeWindow *native;
+ EventHandler *eventhandler;
Image back;
Image logo;