summaryrefslogtreecommitdiff
path: root/src/gui/window.h
diff options
context:
space:
mode:
authorJared Adams <jaxad0127@gmail.com>2009-03-19 16:27:51 -0600
committerJared Adams <jaxad0127@gmail.com>2009-03-19 16:27:51 -0600
commit61f4e3b9838ac7a0e06cd066ea07224670f1b851 (patch)
treebacea13fd0e6e4bd0ebacdb74eea6a9db114b4b4 /src/gui/window.h
parentdbf402a235d142b44c1936c305f6b3f4c02890bc (diff)
downloadMana-61f4e3b9838ac7a0e06cd066ea07224670f1b851.tar.gz
Mana-61f4e3b9838ac7a0e06cd066ea07224670f1b851.tar.bz2
Mana-61f4e3b9838ac7a0e06cd066ea07224670f1b851.tar.xz
Mana-61f4e3b9838ac7a0e06cd066ea07224670f1b851.zip
Make sure positionable dialogs start out centered
Diffstat (limited to 'src/gui/window.h')
-rw-r--r--src/gui/window.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/gui/window.h b/src/gui/window.h
index 9977aff4..95fe2174 100644
--- a/src/gui/window.h
+++ b/src/gui/window.h
@@ -240,6 +240,11 @@ class Window : public gcn::Window, gcn::WidgetListener
int defaultWidth, int defaultHeight);
/**
+ * Set the default win pos and size tot he current ones.
+ */
+ void setDefaultSize();
+
+ /**
* Reset the win pos and size to default. Don't forget to set defaults
* first.
*/
@@ -275,6 +280,11 @@ class Window : public gcn::Window, gcn::WidgetListener
*/
ContainerPlacer getPlacer(int x, int y);
+ /**
+ * Positions the window in the center of it's parent.
+ */
+ void center();
+
protected:
/** The window container windows add themselves to. */
static WindowContainer *windowContainer;