diff options
author | Aaron Marks <nymacro@gmail.com> | 2005-04-09 13:33:35 +0000 |
---|---|---|
committer | Aaron Marks <nymacro@gmail.com> | 2005-04-09 13:33:35 +0000 |
commit | 744cc5f0f3d07b86fd781e2e813201d6c33b154d (patch) | |
tree | 09df6c63913c6a1ec3f423414cc6923ea86e6484 /src/gui/window.h | |
parent | b81c5e80634736b0069eedfa56604c141e7c9bbf (diff) | |
download | mana-744cc5f0f3d07b86fd781e2e813201d6c33b154d.tar.gz mana-744cc5f0f3d07b86fd781e2e813201d6c33b154d.tar.bz2 mana-744cc5f0f3d07b86fd781e2e813201d6c33b154d.tar.xz mana-744cc5f0f3d07b86fd781e2e813201d6c33b154d.zip |
Fixed up problem with inventory display.
Added maximum width/height of window (for resizing).
Diffstat (limited to 'src/gui/window.h')
-rw-r--r-- | src/gui/window.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/gui/window.h b/src/gui/window.h index 33c7f5b8..b7cab031 100644 --- a/src/gui/window.h +++ b/src/gui/window.h @@ -53,6 +53,9 @@ class Window : public gcn::Window, public ConfigListener bool isWinResizeable; /**< Window can be resized */ int minWinWidth; /**< Minimum window width */ int minWinHeight; /**< Minimum window height */ + int maxWinWidth; /**< Maximum window width */ + int maxWinHeight; /**< Maximum window height */ + /** The window container windows add themselves to. */ static WindowContainer* windowContainer; @@ -141,6 +144,17 @@ class Window : public gcn::Window, public ConfigListener */ void setMinHeight(unsigned int height); + /** + * Sets the maximum width of the window + */ + void setMaxWidth(unsigned int width); + + /** + * Sets the minimum height of the window + */ + void setMaxHeight(unsigned int height); + + /** * Returns the parent window. * |