summaryrefslogtreecommitdiff
path: root/src/gui/textbox.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/textbox.h')
-rw-r--r--src/gui/textbox.h13
1 files changed, 11 insertions, 2 deletions
diff --git a/src/gui/textbox.h b/src/gui/textbox.h
index a42562ea..10a81fc0 100644
--- a/src/gui/textbox.h
+++ b/src/gui/textbox.h
@@ -31,7 +31,8 @@
*
* \ingroup GUI
*/
-class TextBox : public gcn::TextBox {
+class TextBox : public gcn::TextBox
+{
public:
/**
* Constructor.
@@ -41,7 +42,15 @@ class TextBox : public gcn::TextBox {
/**
* Sets the text after wrapping it to the current width of the widget.
*/
- void setTextWrapped(const std::string &text);
+ void setTextWrapped(const std::string &text, int minDimension);
+
+ /**
+ * Get the minimum text width for the text box.
+ */
+ int getMinWidth() { return mMinWidth; }
+
+ private:
+ int mMinWidth;
};
#endif