summaryrefslogtreecommitdiff
path: root/plugingui/window.cc
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.cc
parent9b7299412d10e68c8aacc5f0debb7c80bf874120 (diff)
Make FileBrowser window always-on-top and try to position it inside the plugin gui window rectangle.
Diffstat (limited to 'plugingui/window.cc')
-rw-r--r--plugingui/window.cc16
1 files changed, 16 insertions, 0 deletions
diff --git a/plugingui/window.cc b/plugingui/window.cc
index 60ecf02..a9deed5 100644
--- a/plugingui/window.cc
+++ b/plugingui/window.cc
@@ -86,6 +86,11 @@ void Window::setFixedSize(int w, int h)
native->setFixedSize(w, h);
}
+void Window::setAlwaysOnTop(bool always_on_top)
+{
+ native->setAlwaysOnTop(always_on_top);
+}
+
void Window::setCaption(const std::string& caption)
{
native->setCaption(caption);
@@ -125,6 +130,12 @@ Window* Window::window()
return this;
}
+Size Window::getNativeSize()
+{
+ auto sz = native->getSize();
+ return {sz.first, sz.second};
+}
+
ImageCache& Window::getImageCache()
{
return image_cache;
@@ -188,6 +199,11 @@ void* Window::getNativeWindowHandle() const
return native->getNativeWindowHandle();
}
+Point Window::translateToScreen(const Point& point)
+{
+ return native->translateToScreen(point);
+}
+
std::size_t Window::translateToWindowX()
{
return 0;