summaryrefslogtreecommitdiff
path: root/src/gui/window.h
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2009-03-27 00:17:27 +0100
committerBjørn Lindeijer <bjorn@lindeijer.nl>2009-03-27 00:30:38 +0100
commit511d9ac780e094767e806c9a448ac973279dd4c8 (patch)
treea9051719bfdbce7f41338ef03a6f95d442a770cf /src/gui/window.h
parent2eee8b31f6959902db031e61df6c79249f56c23c (diff)
downloadmana-client-511d9ac780e094767e806c9a448ac973279dd4c8.tar.gz
mana-client-511d9ac780e094767e806c9a448ac973279dd4c8.tar.bz2
mana-client-511d9ac780e094767e806c9a448ac973279dd4c8.tar.xz
mana-client-511d9ac780e094767e806c9a448ac973279dd4c8.zip
Compile warning fixes
Mostly unsigned/signed mismatches and an unused variable.
Diffstat (limited to 'src/gui/window.h')
-rw-r--r--src/gui/window.h21
1 files changed, 11 insertions, 10 deletions
diff --git a/src/gui/window.h b/src/gui/window.h
index 7f15e262..44128f1d 100644
--- a/src/gui/window.h
+++ b/src/gui/window.h
@@ -117,42 +117,42 @@ class Window : public gcn::Window, gcn::WidgetListener
/**
* Sets the minimum width of the window.
*/
- void setMinWidth(unsigned int width);
+ void setMinWidth(int width);
/**
* Sets the minimum height of the window.
*/
- void setMinHeight(unsigned int height);
+ void setMinHeight(int height);
/**
* Sets the maximum width of the window.
*/
- void setMaxWidth(unsigned int width);
+ void setMaxWidth(int width);
/**
* Sets the minimum height of the window.
*/
- void setMaxHeight(unsigned int height);
+ void setMaxHeight(int height);
/**
* Gets the minimum width of the window.
*/
- int getMinWidth() { return mMinWinWidth; }
+ int getMinWidth() const { return mMinWinWidth; }
/**
* Gets the minimum height of the window.
*/
- int getMinHeight() { return mMinWinHeight; }
+ int getMinHeight() const { return mMinWinHeight; }
/**
* Gets the maximum width of the window.
*/
- int getMaxWidth() { return mMaxWinWidth; }
+ int getMaxWidth() const { return mMaxWinWidth; }
/**
* Gets the minimum height of the window.
*/
- int getMaxHeight() { return mMaxWinHeight; }
+ int getMaxHeight() const { return mMaxWinHeight; }
/**
* Sets flag to show a title or not.
@@ -168,7 +168,8 @@ class Window : public gcn::Window, gcn::WidgetListener
/**
* Returns whether the window is sticky.
*/
- bool isSticky();
+ bool isSticky() const
+ { return mSticky; }
/**
* Overloads window setVisible by Guichan to allow sticky window
@@ -181,7 +182,7 @@ class Window : public gcn::Window, gcn::WidgetListener
*
* @return The parent window or <code>NULL</code> if there is none.
*/
- Window *getParentWindow() { return mParent; }
+ Window *getParentWindow() const { return mParent; }
/**
* Schedule this window for deletion. It will be deleted at the start