From 744cc5f0f3d07b86fd781e2e813201d6c33b154d Mon Sep 17 00:00:00 2001 From: Aaron Marks Date: Sat, 9 Apr 2005 13:33:35 +0000 Subject: Fixed up problem with inventory display. Added maximum width/height of window (for resizing). --- src/gui/window.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'src/gui/window.h') 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. * -- cgit v1.2.3-70-g09d2