diff options
author | Aaron Marks <nymacro@gmail.com> | 2005-04-08 11:55:53 +0000 |
---|---|---|
committer | Aaron Marks <nymacro@gmail.com> | 2005-04-08 11:55:53 +0000 |
commit | e7c9e87c0ac4c66ac78aa1d03feaccc7533616e8 (patch) | |
tree | bb74c1c6b9bf63ceb94cee60b532838ff71b5899 /src/gui/window.h | |
parent | 722538cb38196237c0d503e8c07b3408c17989bc (diff) | |
download | mana-e7c9e87c0ac4c66ac78aa1d03feaccc7533616e8.tar.gz mana-e7c9e87c0ac4c66ac78aa1d03feaccc7533616e8.tar.bz2 mana-e7c9e87c0ac4c66ac78aa1d03feaccc7533616e8.tar.xz mana-e7c9e87c0ac4c66ac78aa1d03feaccc7533616e8.zip |
Added window resizing.
Diffstat (limited to 'src/gui/window.h')
-rw-r--r-- | src/gui/window.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/src/gui/window.h b/src/gui/window.h index 972c58cd..33c7f5b8 100644 --- a/src/gui/window.h +++ b/src/gui/window.h @@ -50,6 +50,10 @@ class Window : public gcn::Window, public ConfigListener ImageRect border; /**< The window border */ + bool isWinResizeable; /**< Window can be resized */ + int minWinWidth; /**< Minimum window width */ + int minWinHeight; /**< Minimum window height */ + /** The window container windows add themselves to. */ static WindowContainer* windowContainer; @@ -117,6 +121,26 @@ class Window : public gcn::Window, public ConfigListener */ void setContentSize(int width, int height); + /** + * Sets whether of not the window can be resized + */ + void setResizeable(bool resize); + + /** + * Returns the current value of isResizable + */ + bool getResizeable(); + + /** + * Sets the minimum width of the window + */ + void setMinWidth(unsigned int width); + + /** + * Sets the minimum height of the window + */ + void setMinHeight(unsigned int height); + /** * Returns the parent window. * |