diff options
Diffstat (limited to 'plugingui/widget.h')
-rw-r--r-- | plugingui/widget.h | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/plugingui/widget.h b/plugingui/widget.h index bbe85d0..26070c5 100644 --- a/plugingui/widget.h +++ b/plugingui/widget.h @@ -30,15 +30,21 @@ #include "pixelbuffer.h" #include "notifier.h" #include "layout.h" +#include "canvas.h" #include <vector> -namespace GUI { +namespace GUI +{ class ImageCache; class Window; -class Widget : public Listener, public LayoutItem { +class Widget + : public Listener + , public LayoutItem + , public Canvas +{ friend class Painter; public: Widget(Widget* parent); @@ -55,6 +61,11 @@ public: virtual size_t width() override; virtual size_t height() override; + // From Canvas + PixelBufferAlpha& GetPixelBuffer() override; + void beginPaint() override; + void endPaint() override; + virtual size_t windowX(); virtual size_t windowY(); |