diff options
author | frosch <frosch@openttd.org> | 2012-11-14 22:50:11 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2012-11-14 22:50:11 +0000 |
commit | 0ea21523556a345d38933ee2dd6dcdca0ec08514 (patch) | |
tree | 455c685cff6735215cbaba335c3e142cfe3da493 /src/textbuf_type.h | |
parent | f2221e8b89d0e3030679a36bfaaa75c64951aed3 (diff) | |
download | openttd-0ea21523556a345d38933ee2dd6dcdca0ec08514.tar.xz |
(svn r24737) -Add: Textbuf::Assign and Textbuf::Print.
Diffstat (limited to 'src/textbuf_type.h')
-rw-r--r-- | src/textbuf_type.h | 5 |
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); |