diff options
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); |