summaryrefslogtreecommitdiff
path: root/plugingui/window.h
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2019-10-09 18:02:19 +0200
committerBent Bisballe Nyeng <deva@aasimon.org>2019-10-09 18:02:19 +0200
commit2d6cbf8a0bb81bfe55a7d4e04d53a704f93c6b2e (patch)
tree80bab0705a6d5aec8569a3ed626a33a6224cf4f0 /plugingui/window.h
parent9b7299412d10e68c8aacc5f0debb7c80bf874120 (diff)
Make FileBrowser window always-on-top and try to position it inside the plugin gui window rectangle.
Diffstat (limited to 'plugingui/window.h')
-rw-r--r--plugingui/window.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/plugingui/window.h b/plugingui/window.h
index e5bc496..6031500 100644
--- a/plugingui/window.h
+++ b/plugingui/window.h
@@ -45,6 +45,7 @@ public:
~Window();
void setFixedSize(int width, int height);
+ void setAlwaysOnTop(bool always_on_top);
void setCaption(const std::string& caption);
// From Widget:
@@ -53,7 +54,7 @@ public:
void show() override;
void hide() override;
Window* window() override;
-
+ Size getNativeSize();
ImageCache& getImageCache() override;
EventHandler* eventHandler();
@@ -73,6 +74,9 @@ public:
// \returns the native window handle, it HWND on Win32 or Window id on X11
void* getNativeWindowHandle() const;
+ //! Translate a local window coordinate to a global screen coordinate.
+ Point translateToScreen(const Point& point);
+
protected:
// For the EventHandler
friend class EventHandler;