summaryrefslogtreecommitdiff
path: root/src/gui/widgets/window.h
diff options
context:
space:
mode:
authorBertram <bertram@cegetel.net>2009-07-30 23:28:18 +0200
committerBertram <bertram@cegetel.net>2009-07-30 23:28:18 +0200
commit3ff2538f8dda2f16e2a536ffc1d994374260d6f2 (patch)
treee4399e3206a76d8c2c4dc1af1fb5dddeafca14be /src/gui/widgets/window.h
parentab6b8095d0bfe87c548776e640043b9b2bc46639 (diff)
downloadMana-3ff2538f8dda2f16e2a536ffc1d994374260d6f2.tar.gz
Mana-3ff2538f8dda2f16e2a536ffc1d994374260d6f2.tar.bz2
Mana-3ff2538f8dda2f16e2a536ffc1d994374260d6f2.tar.xz
Mana-3ff2538f8dda2f16e2a536ffc1d994374260d6f2.zip
Fixed windows loss when changing to a lowered resolution. (Mantis 776)
Diffstat (limited to 'src/gui/widgets/window.h')
-rw-r--r--src/gui/widgets/window.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/gui/widgets/window.h b/src/gui/widgets/window.h
index 153602ba..b3ef3fdc 100644
--- a/src/gui/widgets/window.h
+++ b/src/gui/widgets/window.h
@@ -269,7 +269,7 @@ class Window : public gcn::Window, gcn::WidgetListener
int defaultWidth, int defaultHeight);
/**
- * Set the default win pos and size tot he current ones.
+ * Set the default win pos and size to the current ones.
*/
void setDefaultSize();
@@ -347,6 +347,13 @@ class Window : public gcn::Window, gcn::WidgetListener
};
/**
+ * Check if the window is off-screen and then move it to be visible
+ * again. This is internally used by loadWindowState
+ * and setVisible(true) members.
+ */
+ void checkIfIsOffScreen(bool partially = true, bool entirely = true);
+
+ /**
* Determines if the mouse is in a resize area and returns appropriate
* resize handles. Also initializes drag offset in case the resize
* grip is used.