From 895c942289c81ca24346d3bb18d2b922ae469554 Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Wed, 8 May 2013 14:56:19 +0200 Subject: Remove GlobalContext class. Move all native code from EventHandler class to NativeWindowX11 and NativeWindowWin32 classes. --- plugingui/nativewindow_x11.h | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'plugingui/nativewindow_x11.h') diff --git a/plugingui/nativewindow_x11.h b/plugingui/nativewindow_x11.h index 0cd11da..84044de 100644 --- a/plugingui/nativewindow_x11.h +++ b/plugingui/nativewindow_x11.h @@ -38,7 +38,7 @@ namespace GUI { class Window; class NativeWindowX11 : public NativeWindow { public: - NativeWindowX11(GlobalContext *gctx, GUI::Window *window); + NativeWindowX11(GUI::Window *window); ~NativeWindowX11(); void resize(int width, int height); @@ -50,12 +50,20 @@ public: void redraw(); void grabMouse(bool grab); + bool hasEvent(); + Event *getNextEvent(); + private: ::Window xwindow; GC gc; XImage *buffer; GUI::Window *window; + + int last_click; + + Display *display; + Atom wmDeleteMessage; }; }; -- cgit v1.2.3