79 std::vector<char> mText;
~EditField()
Release the text.
KeyResult
The values of HandleKey().
Definition editfield.h:16
@ kKeyIgnored
Definition editfield.h:19
@ kKeyChanged
Definition editfield.h:20
@ kKeyCancel
Definition editfield.h:17
@ kKeySubmit
Definition editfield.h:18
int HandleKey(KeyboardKeyMsg *pMsg)
Apply a key to the text and the cursor.
const char * GetText()
Report the text.
void Clear()
Empty the text to a single space and move the cursor to the start.
int GetCursor() const
Definition editfield.h:71
EditField(int nMaxLength)
Construct an empty field.
Message the keyboard poll sends when a key of a USB keyboard is pressed.
Definition keyboardkeymsg.h:23