diff options
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. * |