summaryrefslogtreecommitdiff
path: root/src/gui/window.h
diff options
context:
space:
mode:
authorYohann Ferreira <bertram@cegetel.net>2005-09-28 20:09:25 +0000
committerYohann Ferreira <bertram@cegetel.net>2005-09-28 20:09:25 +0000
commite93e064373c382b80ecb37919335fbfe424efeea (patch)
treec090ee89b74f1b92c58ec2641eeb9a9f80471ec7 /src/gui/window.h
parentafaf7b68b8761268fdc54066e02cfe8df1d23dec (diff)
downloadmana-client-e93e064373c382b80ecb37919335fbfe424efeea.tar.gz
mana-client-e93e064373c382b80ecb37919335fbfe424efeea.tar.bz2
mana-client-e93e064373c382b80ecb37919335fbfe424efeea.tar.xz
mana-client-e93e064373c382b80ecb37919335fbfe424efeea.zip
Added window internal name to every window. Useful to later get and save X, Y, Height, and Width of these wins.
Diffstat (limited to 'src/gui/window.h')
-rw-r--r--src/gui/window.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/gui/window.h b/src/gui/window.h
index df692d08..057981ef 100644
--- a/src/gui/window.h
+++ b/src/gui/window.h
@@ -159,9 +159,21 @@ class Window : public gcn::Window
*/
gcn::Rectangle getGripDimension();
+ /**
+ * set Window internal name
+ */
+ void setWindowName(std::string name);
+
+ /**
+ * Get window internal name
+ */
+ std::string getWindowName();
+
+
protected:
gcn::Container *chrome; /**< Contained container */
Window *parent; /**< The parent window */
+ std::string mWindowName; /**< Window internal name */
int snapSize; /**< Snap distance to window edge */
bool title; /**< Window has a title bar */
bool modal; /**< Window is modal */