summaryrefslogtreecommitdiff
path: root/src/gui/chat.h
diff options
context:
space:
mode:
authorEric Scrivner <zenogais@gmail.com>2005-03-13 21:57:24 +0000
committerEric Scrivner <zenogais@gmail.com>2005-03-13 21:57:24 +0000
commitbb5886f5351a148b5443adaee0a64ca6e81ee0b9 (patch)
treee8aaa3e574efe9b0746ae7fb8d26bf348a8ccb20 /src/gui/chat.h
parentea6011fbc06a2adc9805baabf8c921b48f60f2c3 (diff)
downloadmana-bb5886f5351a148b5443adaee0a64ca6e81ee0b9.tar.gz
mana-bb5886f5351a148b5443adaee0a64ca6e81ee0b9.tar.bz2
mana-bb5886f5351a148b5443adaee0a64ca6e81ee0b9.tar.xz
mana-bb5886f5351a148b5443adaee0a64ca6e81ee0b9.zip
Added line wrapping on a per-word basis
Diffstat (limited to 'src/gui/chat.h')
-rw-r--r--src/gui/chat.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/gui/chat.h b/src/gui/chat.h
index 3102e3bc..db2d9843 100644
--- a/src/gui/chat.h
+++ b/src/gui/chat.h
@@ -181,6 +181,16 @@ class ChatWindow : public Window, public gcn::ActionListener {
/** Constructs failed messages for actions */
std::string const_msg(CHATSKILL);
+ /**
+ * Cuts a string into two on a per word basis
+ * @param value The string to be cut, it may be modified
+ * in the function.
+ * @param maximumLength The length after which the string
+ * should be cut.
+ * @return The cut off section of the string
+ */
+ std::string cut_string(std::string& value, unsigned int maximumLength);
+
/** Input box for chat messages */
gcn::TextField *chatInput;
};