diff options
author | michi_cc <michi_cc@openttd.org> | 2013-08-05 20:37:57 +0000 |
---|---|---|
committer | michi_cc <michi_cc@openttd.org> | 2013-08-05 20:37:57 +0000 |
commit | d15c1c5d4aacb74bbfd6d47700c5b2a2cec368ff (patch) | |
tree | 1cc8e74963f04a70fe7a7622e51dc2f31451a9f7 /src/textbuf_type.h | |
parent | 30867c487f17ca13744977c7873f4e1cf214fd33 (diff) | |
download | openttd-d15c1c5d4aacb74bbfd6d47700c5b2a2cec368ff.tar.xz |
(svn r25692) -Add: Replacement of a part of the edit box text with a new string.
Diffstat (limited to 'src/textbuf_type.h')
-rw-r--r-- | src/textbuf_type.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/textbuf_type.h b/src/textbuf_type.h index e34e2e2f4..1d927b72d 100644 --- a/src/textbuf_type.h +++ b/src/textbuf_type.h @@ -56,7 +56,7 @@ struct Textbuf { bool InsertClipboard(); bool InsertChar(uint32 key); - bool InsertString(const char *str, bool marked, const char *caret = NULL); + bool InsertString(const char *str, bool marked, const char *caret = NULL, const char *insert_location = NULL, const char *replacement_end = NULL); bool DeleteChar(uint16 keycode); bool MovePos(uint16 keycode); @@ -73,6 +73,8 @@ private: bool CanDelChar(bool backspace); + void DeleteText(uint16 from, uint16 to, bool update); + void UpdateStringIter(); void UpdateWidth(); void UpdateCaretPosition(); |