summaryrefslogtreecommitdiff
path: root/src/textbuf_type.h
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2012-11-14 22:50:11 +0000
committerfrosch <frosch@openttd.org>2012-11-14 22:50:11 +0000
commit0ea21523556a345d38933ee2dd6dcdca0ec08514 (patch)
tree455c685cff6735215cbaba335c3e142cfe3da493 /src/textbuf_type.h
parentf2221e8b89d0e3030679a36bfaaa75c64951aed3 (diff)
downloadopenttd-0ea21523556a345d38933ee2dd6dcdca0ec08514.tar.xz
(svn r24737) -Add: Textbuf::Assign and Textbuf::Print.
Diffstat (limited to 'src/textbuf_type.h')
-rw-r--r--src/textbuf_type.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/textbuf_type.h b/src/textbuf_type.h
index 363f01643..77a957f84 100644
--- a/src/textbuf_type.h
+++ b/src/textbuf_type.h
@@ -13,6 +13,7 @@
#define TEXTBUF_TYPE_H
#include "string_type.h"
+#include "strings_type.h"
/** Helper/buffer for input fields. */
struct Textbuf {
@@ -29,6 +30,10 @@ struct Textbuf {
void Initialize(char *buf, uint16 max_bytes);
void Initialize(char *buf, uint16 max_bytes, uint16 max_chars);
+ void Assign(StringID string);
+ void Assign(const char *text);
+ void CDECL Print(const char *format, ...) WARN_FORMAT(2, 3);
+
void DeleteAll();
bool DeleteChar(int delmode);
bool InsertChar(uint32 key);