summaryrefslogtreecommitdiff
path: root/src/gui/popup.h
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2009-03-27 00:17:27 +0100
committerIra Rice <irarice@gmail.com>2009-03-26 17:52:00 -0600
commit2ec46b9a6e5ca1beb043da00cf2bb9d34722ec72 (patch)
tree02cfa2ce2e1976af94c07d7d984eb394ffa4f3c4 /src/gui/popup.h
parent22974109dd0e9ae2b915cc2c258df1f01a65b729 (diff)
downloadMana-2ec46b9a6e5ca1beb043da00cf2bb9d34722ec72.tar.gz
Mana-2ec46b9a6e5ca1beb043da00cf2bb9d34722ec72.tar.bz2
Mana-2ec46b9a6e5ca1beb043da00cf2bb9d34722ec72.tar.xz
Mana-2ec46b9a6e5ca1beb043da00cf2bb9d34722ec72.zip
Compile warning fixes
Mostly unsigned/signed mismatches and an unused variable.
Diffstat (limited to 'src/gui/popup.h')
-rw-r--r--src/gui/popup.h20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/gui/popup.h b/src/gui/popup.h
index 868f2a2b..37c99ded 100644
--- a/src/gui/popup.h
+++ b/src/gui/popup.h
@@ -96,42 +96,42 @@ class Popup : public gcn::Container
/**
* Sets the minimum width of the popup.
*/
- void setMinWidth(unsigned int width);
+ void setMinWidth(int width);
/**
* Sets the minimum height of the popup.
*/
- void setMinHeight(unsigned int height);
+ void setMinHeight(int height);
/**
* Sets the maximum width of the popup.
*/
- void setMaxWidth(unsigned int width);
+ void setMaxWidth(int width);
/**
* Sets the minimum height of the popup.
*/
- void setMaxHeight(unsigned int height);
+ void setMaxHeight(int height);
/**
* Gets the minimum width of the popup.
*/
- int getMinWidth() { return mMinWidth; }
+ int getMinWidth() const { return mMinWidth; }
/**
* Gets the minimum height of the popup.
*/
- int getMinHeight() { return mMinHeight; }
+ int getMinHeight() const { return mMinHeight; }
/**
* Gets the maximum width of the popup.
*/
- int getMaxWidth() { return mMaxWidth; }
+ int getMaxWidth() const { return mMaxWidth; }
/**
* Gets the minimum height of the popup.
*/
- int getMaxHeight() { return mMaxHeight; }
+ int getMaxHeight() const { return mMaxHeight; }
/**
* Gets the padding of the popup. The padding is the distance between
@@ -149,7 +149,7 @@ class Popup : public gcn::Container
* @param padding The padding of the popup.
* @see getPadding
*/
- void setPadding(unsigned int padding) { mPadding = padding; }
+ void setPadding(int padding) { mPadding = padding; }
/**
* Returns the parent Window.
@@ -186,7 +186,7 @@ class Popup : public gcn::Container
int mMinHeight; /**< Minimum popup height */
int mMaxWidth; /**< Maximum popup width */
int mMaxHeight; /**< Maximum popup height */
- unsigned int mPadding; /**< Holds the padding of the popup. */
+ int mPadding; /**< Holds the padding of the popup. */
static int instances; /**< Number of popup instances */