summaryrefslogtreecommitdiff
path: root/plugingui/widget.h
diff options
context:
space:
mode:
Diffstat (limited to 'plugingui/widget.h')
-rw-r--r--plugingui/widget.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/plugingui/widget.h b/plugingui/widget.h
index 8595ef7..fbf3f5b 100644
--- a/plugingui/widget.h
+++ b/plugingui/widget.h
@@ -37,6 +37,18 @@
namespace GUI
{
+struct Point
+{
+ int x;
+ int y;
+};
+
+struct Size
+{
+ std::size_t width;
+ std::size_t height;
+};
+
class ImageCache;
class Window;
@@ -66,6 +78,8 @@ public:
virtual std::size_t width() const override;
virtual std::size_t height() const override;
+ Point position() const;
+
// From Canvas
PixelBufferAlpha& GetPixelBuffer() override;