diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2019-10-09 18:02:19 +0200 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2019-10-09 18:02:19 +0200 |
commit | 2d6cbf8a0bb81bfe55a7d4e04d53a704f93c6b2e (patch) | |
tree | 80bab0705a6d5aec8569a3ed626a33a6224cf4f0 /plugingui/widget.h | |
parent | 9b7299412d10e68c8aacc5f0debb7c80bf874120 (diff) |
Make FileBrowser window always-on-top and try to position it inside the plugin gui window rectangle.
Diffstat (limited to 'plugingui/widget.h')
-rw-r--r-- | plugingui/widget.h | 14 |
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; |