summaryrefslogtreecommitdiff
path: root/ucl/source/gui/Window.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'ucl/source/gui/Window.cpp')
-rw-r--r--ucl/source/gui/Window.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/ucl/source/gui/Window.cpp b/ucl/source/gui/Window.cpp
index 3f74e9e..cfa53fd 100644
--- a/ucl/source/gui/Window.cpp
+++ b/ucl/source/gui/Window.cpp
@@ -75,4 +75,17 @@ namespace ucl {
return result;
}
+
+ // Window //
+
+ void Window::resizeToScreen()
+ {
+ int w = 0;
+ int h = 0;
+ getScreenSize(&w, &h);
+ if ((w > 0) && (h > 0)) {
+ setGeometry(0, 0, w, h);
+ m_conform.setGeometry(0, 0, w, h);
+ }
+ }
}