summaryrefslogtreecommitdiff
path: root/src/gui/window.h
diff options
context:
space:
mode:
authorEugenio Favalli <elvenprogrammer@gmail.com>2006-08-24 09:33:33 +0000
committerEugenio Favalli <elvenprogrammer@gmail.com>2006-08-24 09:33:33 +0000
commitdd79b36895a17b3da131197be66827e6809615f0 (patch)
treebe41cac640f44cf45ce2f58142cf32eff78dc5d8 /src/gui/window.h
parent9581f6556ac1646b4d30c676403aba544e4edaec (diff)
downloadmana-client-dd79b36895a17b3da131197be66827e6809615f0.tar.gz
mana-client-dd79b36895a17b3da131197be66827e6809615f0.tar.bz2
mana-client-dd79b36895a17b3da131197be66827e6809615f0.tar.xz
mana-client-dd79b36895a17b3da131197be66827e6809615f0.zip
Added support for sticky windows as discussed with doener. Patch by AHarrison
Diffstat (limited to 'src/gui/window.h')
-rw-r--r--src/gui/window.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/gui/window.h b/src/gui/window.h
index 42ce444c..51c876e3 100644
--- a/src/gui/window.h
+++ b/src/gui/window.h
@@ -134,6 +134,25 @@ class Window : public gcn::Window
void setMaxHeight(unsigned int height);
/**
+ * Sets whether the window is sticky.
+ * A sticky window will not have its visibility set to false
+ * on a general setVisible(false) call.
+ */
+ void setSticky(bool sticky);
+
+ /**
+ * Returns whether the window is sticky.
+ */
+ bool isSticky();
+
+ /**
+ * Overloads window setVisible by guichan to allow sticky window
+ * Handling
+ */
+
+ void setVisible(bool visible);
+
+ /**
* Returns the parent window.
*
* @return The parent window or <code>NULL</code> if there is none.
@@ -204,6 +223,7 @@ class Window : public gcn::Window
bool mModal; /**< Window is modal */
bool mResizable; /**< Window can be resized */
bool mMouseResize; /**< Window is being resized */
+ bool mSticky; /**< Window resists minimzation */
int mMinWinWidth; /**< Minimum window width */
int mMinWinHeight; /**< Minimum window height */
int mMaxWinWidth; /**< Maximum window width */