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.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gui/textbox.h b/src/gui/textbox.h
index 8f5d910f..5c315d15 100644
--- a/src/gui/textbox.h
+++ b/src/gui/textbox.h
@@ -44,6 +44,11 @@ class TextBox : public gcn::TextBox {
* Constructor.
*/
TextBox(const std::string& text);
+
+ /**
+ * Sets the text after wrapping it to the current width of the widget.
+ */
+ void setText(const std::string &text);
};
#endif