summaryrefslogtreecommitdiff
path: root/plugingui/globalcontext.h
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2012-01-23 20:08:12 +0100
committerBent Bisballe Nyeng <deva@aasimon.org>2012-01-23 20:08:12 +0100
commitaf9c9091ed69394171485aa4c4814504f86f2004 (patch)
tree070b911dc8faed486c8e8829f0f41aec7d5b4350 /plugingui/globalcontext.h
parent5e4cb10f72ef69d73fbd2c1bc42465c9111a4c41 (diff)
Simple image blit. New slider class. New filenamelineedit. New pixelbuffer used for drawing everything but the root window - with alpha blending...
Diffstat (limited to 'plugingui/globalcontext.h')
-rw-r--r--plugingui/globalcontext.h18
1 files changed, 15 insertions, 3 deletions
diff --git a/plugingui/globalcontext.h b/plugingui/globalcontext.h
index 2aa083b..77e3c37 100644
--- a/plugingui/globalcontext.h
+++ b/plugingui/globalcontext.h
@@ -29,14 +29,20 @@
#ifdef X11
#include <X11/Xlib.h>
+#include <X11/Xatom.h>
#endif/*X11*/
#ifdef WIN32
+//#define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers
#include <windows.h>
+typedef HWND WNDID;
+namespace GUI { class EventHandler; };
#endif/*WIN32*/
#include <map>
+namespace GUI {
+
class Widget;
class GlobalContext {
@@ -44,12 +50,18 @@ public:
GlobalContext();
~GlobalContext();
- Widget *keyboardFocus;
-
#ifdef X11
Display *display;
- std::map<Window, Widget*> widgets;
+ Atom wmDeleteMessage;
#endif/*X11*/
+
+#ifdef WIN32
+ WNDID m_hwnd;
+ char *m_className;
+ EventHandler *eventhandler;
+#endif/*WIN32*/
+};
+
};
#endif/*__DRUMGIZMO_GLOBALCONTEXT_H__*/