summaryrefslogtreecommitdiff
path: root/plugingui/window.h
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2016-09-04 21:15:39 +0200
committerBent Bisballe Nyeng <deva@aasimon.org>2016-09-04 21:15:39 +0200
commit6cd45908c3d62f845f1847009a0c38504f0d0082 (patch)
tree230b4cca4e7c84a7b16a5ab4c7aeca8597f0b167 /plugingui/window.h
parent107102992a25781d0fef5c4d38b799f5fe38dd24 (diff)
Add Canvas base class for the Painter to draw on. This is done in preparation for a new Painter unittest.
Diffstat (limited to 'plugingui/window.h')
-rw-r--r--plugingui/window.h11
1 files changed, 7 insertions, 4 deletions
diff --git a/plugingui/window.h b/plugingui/window.h
index 9eb9d6d..8b186e9 100644
--- a/plugingui/window.h
+++ b/plugingui/window.h
@@ -34,11 +34,14 @@
#include "eventhandler.h"
#include "imagecache.h"
-namespace GUI {
+namespace GUI
+{
-class Window : public Widget {
+class Window
+ : public Widget
+{
public:
- Window(void* native_window);
+ Window(void* native_window = nullptr);
~Window();
void setFixedSize(int width, int height);
@@ -74,7 +77,7 @@ protected:
void updateBuffer();
// For the Painter
- friend class Painter;
+ friend class Widget;
void beginPaint();
void endPaint();