summaryrefslogtreecommitdiff
path: root/plugingui/nativewindow_win32.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_win32.h
parent8cacd4e097bb969fe6de20d88e98763deef658e6 (diff)
Remove GlobalContext class. Move all native code from EventHandler class to NativeWindowX11 and NativeWindowWin32 classes.
Diffstat (limited to 'plugingui/nativewindow_win32.h')
-rw-r--r--plugingui/nativewindow_win32.h15
1 files changed, 13 insertions, 2 deletions
diff --git a/plugingui/nativewindow_win32.h b/plugingui/nativewindow_win32.h
index cceff2f..d8ba7b3 100644
--- a/plugingui/nativewindow_win32.h
+++ b/plugingui/nativewindow_win32.h
@@ -31,12 +31,17 @@
#include "nativewindow.h"
+#include <windows.h>
+typedef HWND WNDID;
+
namespace GUI {
class Window;
+class Event;
+
class NativeWindowWin32 : public NativeWindow {
public:
- NativeWindowWin32(GlobalContext *gctx, GUI::Window *window);
+ NativeWindowWin32(GUI::Window *window);
~NativeWindowWin32();
void resize(int width, int height);
@@ -48,8 +53,14 @@ public:
void redraw();
void grabMouse(bool grab);
-private:
+ bool hasEvent();
+ Event *getNextEvent();
+
+ // Needed by dialogProc
GUI::Window *window;
+ WNDID m_hwnd;
+ char *m_className;
+ Event *event;
};
};