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/nativewindow_win32.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/nativewindow_win32.h')
-rw-r--r-- | plugingui/nativewindow_win32.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/plugingui/nativewindow_win32.h b/plugingui/nativewindow_win32.h index d547dc0..046b38a 100644 --- a/plugingui/nativewindow_win32.h +++ b/plugingui/nativewindow_win32.h @@ -45,6 +45,7 @@ public: ~NativeWindowWin32(); void setFixedSize(std::size_t width, std::size_t height) override; + void setAlwaysOnTop(bool always_on_top) override; void resize(std::size_t width, std::size_t height) override; std::pair<std::size_t, std::size_t> getSize() const override; void move(int x, int y) override; @@ -57,6 +58,7 @@ public: void grabMouse(bool grab) override; EventQueue getEvents() override; void* getNativeWindowHandle() const override; + Point translateToScreen(const Point& point) override; private: static LRESULT CALLBACK dialogProc(HWND hwnd, UINT msg, WPARAM wp, LPARAM lp); @@ -70,6 +72,7 @@ private: std::pair<int, int> last_mouse_position{0, 0}; char* m_className = nullptr; EventQueue event_queue; + bool always_on_top{false}; }; } // GUI:: |