diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2016-09-04 21:15:39 +0200 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2016-09-04 21:15:39 +0200 |
commit | 6cd45908c3d62f845f1847009a0c38504f0d0082 (patch) | |
tree | 230b4cca4e7c84a7b16a5ab4c7aeca8597f0b167 /plugingui/painter.h | |
parent | 107102992a25781d0fef5c4d38b799f5fe38dd24 (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/painter.h')
-rw-r--r-- | plugingui/painter.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/plugingui/painter.h b/plugingui/painter.h index 233d157..7e1fede 100644 --- a/plugingui/painter.h +++ b/plugingui/painter.h @@ -42,7 +42,7 @@ namespace GUI class Painter { public: - Painter(Widget& widget); + Painter(Canvas& canvas); ~Painter(); void flush(); @@ -84,8 +84,8 @@ public: void clear(); private: - Widget& widget; - PixelBufferAlpha* pixbuf; + Canvas& canvas; + PixelBufferAlpha& pixbuf; Colour colour; }; |