summaryrefslogtreecommitdiff
path: root/src/gui/window.h
diff options
context:
space:
mode:
authorYohann Ferreira <bertram@cegetel.net>2005-09-28 21:26:23 +0000
committerYohann Ferreira <bertram@cegetel.net>2005-09-28 21:26:23 +0000
commiteb8dc37bfa07e1185308bc8d4748d92c69af1783 (patch)
tree43f8b726cc7f2c071c0641fdacb187c747aaaf5a /src/gui/window.h
parente93e064373c382b80ecb37919335fbfe424efeea (diff)
downloadmana-client-eb8dc37bfa07e1185308bc8d4748d92c69af1783.tar.gz
mana-client-eb8dc37bfa07e1185308bc8d4748d92c69af1783.tar.bz2
mana-client-eb8dc37bfa07e1185308bc8d4748d92c69af1783.tar.xz
mana-client-eb8dc37bfa07e1185308bc8d4748d92c69af1783.zip
Save and load X, Y, Height, and Width to useful wins.
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 057981ef..05d9291b 100644
--- a/src/gui/window.h
+++ b/src/gui/window.h
@@ -169,6 +169,16 @@ class Window : public gcn::Window
*/
std::string getWindowName();
+ /**
+ * Read the X, Y, and Width and Height for resizables
+ * in the config based on its internal name.
+ * That function let the values set with set{X, Y, Height, width}()
+ * if no config value is found.
+ * Don't forget to set these default values and resizable before
+ * calling this function.
+ */
+ void loadWindowState();
+
protected:
gcn::Container *chrome; /**< Contained container */