diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2013-05-08 14:56:19 +0200 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2013-05-08 14:56:19 +0200 |
commit | 895c942289c81ca24346d3bb18d2b922ae469554 (patch) | |
tree | 58a5ad2ae9ad311bfa59daaa8114a83b5277c3c5 /plugingui/nativewindow_x11.h | |
parent | 8cacd4e097bb969fe6de20d88e98763deef658e6 (diff) |
Remove GlobalContext class. Move all native code from EventHandler class to NativeWindowX11 and NativeWindowWin32 classes.
Diffstat (limited to 'plugingui/nativewindow_x11.h')
-rw-r--r-- | plugingui/nativewindow_x11.h | 10 |
1 files changed, 9 insertions, 1 deletions
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; }; }; |