diff options
author | Guillaume Melquiond <guillaume.melquiond@gmail.com> | 2007-10-21 06:58:19 +0000 |
---|---|---|
committer | Guillaume Melquiond <guillaume.melquiond@gmail.com> | 2007-10-21 06:58:19 +0000 |
commit | 139346a2f195ee352c09f9cbb4a3b644ac8b2700 (patch) | |
tree | 6d5c19956cc7f7232214f442d8d6372d71f64298 /src/gui/window.h | |
parent | 94ab3f3afa12f9f73d7f832e95aa0af2d9efdf16 (diff) | |
download | mana-139346a2f195ee352c09f9cbb4a3b644ac8b2700.tar.gz mana-139346a2f195ee352c09f9cbb4a3b644ac8b2700.tar.bz2 mana-139346a2f195ee352c09f9cbb4a3b644ac8b2700.tar.xz mana-139346a2f195ee352c09f9cbb4a3b644ac8b2700.zip |
Removed redundant resizable flag. Factored moving/resizing code, so that events are fired only once per size change.
Diffstat (limited to 'src/gui/window.h')
-rw-r--r-- | src/gui/window.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/gui/window.h b/src/gui/window.h index 034c99da..651a8a4e 100644 --- a/src/gui/window.h +++ b/src/gui/window.h @@ -99,6 +99,11 @@ class Window : public gcn::Window virtual void updateContentSize() {} /** + * Sets the size of this window. + */ + void setSize(int width, int height); + + /** * Sets the width of this window. */ void setWidth(int width); @@ -318,7 +323,6 @@ class Window : public gcn::Window std::string mConfigName; /**< Name used for saving window-related data */ bool mShowTitle; /**< Window has a title bar */ bool mModal; /**< Window is modal */ - bool mResizable; /**< Window can be resized */ bool mCloseButton; /**< Window has a close button */ bool mSticky; /**< Window resists minimization */ int mMinWinWidth; /**< Minimum window width */ |