summaryrefslogtreecommitdiff
path: root/src/gui/window.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/window.h')
-rw-r--r--src/gui/window.h24
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.
*