summaryrefslogtreecommitdiff
path: root/src/textbuf_type.h
diff options
context:
space:
mode:
authorzuu <zuu@openttd.org>2012-09-10 18:40:54 +0000
committerzuu <zuu@openttd.org>2012-09-10 18:40:54 +0000
commitae28432e623d55fd495f0f456045c2509f1c8383 (patch)
tree728995bea9ca75caae04d0f89df95e5e176d9fc7 /src/textbuf_type.h
parent0e9dbe6bb6e47e37c6ac7b8aa2f62aacc8e946d1 (diff)
downloadopenttd-ae28432e623d55fd495f0f456045c2509f1c8383.tar.xz
(svn r24518) -Codechange [FS#5203]: Refactor arrow key text edit movement code (sbr)
Diffstat (limited to 'src/textbuf_type.h')
-rw-r--r--src/textbuf_type.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/textbuf_type.h b/src/textbuf_type.h
index 0c4208f53..194c241ad 100644
--- a/src/textbuf_type.h
+++ b/src/textbuf_type.h
@@ -12,6 +12,8 @@
#ifndef TEXTBUF_TYPE_H
#define TEXTBUF_TYPE_H
+#include "string_type.h"
+
/** Helper/buffer for input fields. */
struct Textbuf {
char *buf; ///< buffer in which text is saved
@@ -38,6 +40,11 @@ struct Textbuf {
private:
void DelChar(bool backspace);
+ bool CanMoveCaretLeft();
+ WChar MoveCaretLeft();
+ bool CanMoveCaretRight();
+ WChar MoveCaretRight();
+
};
#endif /* TEXTBUF_TYPE_H */