(svn r24737) -Add: Textbuf::Assign and Textbuf::Print.

This commit is contained in:
frosch
2012-11-14 22:50:11 +00:00
parent f2221e8b89
commit 0ea2152355
2 changed files with 41 additions and 0 deletions

View File

@@ -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);