summaryrefslogtreecommitdiff
path: root/plugingui/window.h
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2012-12-28 19:55:42 +0100
committerBent Bisballe Nyeng <deva@aasimon.org>2012-12-28 19:55:42 +0100
commitee8c2cf0dc3885751eb3e4b2c11da2576cac1371 (patch)
treee46700a612f74201e74ec925d6627f8c691a5944 /plugingui/window.h
parentd88abf274ddff2de9250dbf960cb8e1b25f07cfa (diff)
Move native code to seperate 'NativeWindow' classes.
Diffstat (limited to 'plugingui/window.h')
-rw-r--r--plugingui/window.h12
1 files changed, 5 insertions, 7 deletions
diff --git a/plugingui/window.h b/plugingui/window.h
index e1e49c7..8e61603 100644
--- a/plugingui/window.h
+++ b/plugingui/window.h
@@ -32,6 +32,7 @@
#include "globalcontext.h"
#include "pixelbuffer.h"
+#include "nativewindow.h"
namespace GUI {
@@ -51,6 +52,8 @@ public:
size_t width();
size_t height();
+ void setCaption(std::string caption);
+
void addChild(Widget *widget);
void repaintEvent(GUI::RepaintEvent *e);
@@ -73,20 +76,15 @@ public:
GlobalContext *gctx;
PixelBuffer wpixbuf;
-
-protected:
void updateBuffer();
+protected:
size_t refcount;
Widget *_keyboardFocus;
Widget *_buttonDownFocus;
-#ifdef X11
- ::Window xwindow;
- GC gc;
- XImage *buffer;
-#endif/*X11*/
+ NativeWindow *native;
};