(svn r24518) -Codechange [FS#5203]: Refactor arrow key text edit movement code (sbr)

This commit is contained in:
zuu
2012-09-10 18:40:54 +00:00
parent fddb276bde
commit 2314f6a078
2 changed files with 64 additions and 13 deletions

View File

@@ -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 */