GameTextInputState
#include <gametextinput.h>
This struct holds the state of an editable section of text.
Summary
The text can have a selection and a composing region defined on it. A composing region is used by IMEs that allow input using multiple steps to compose a glyph or word. Use functions GameTextInput_getState and GameTextInput_setState to read and modify the state that an IME is editing.
Public attributes |
|
---|---|
composingRegion
|
A composing region defined on the text.
|
selection
|
A selection defined on the text.
|
text_UTF8
|
const char *
Text owned by the state, as a modified UTF-8 string.
|
text_length
|
int32_t
Length in bytes of text_UTF8, not including the null at end.
|
Public attributes
composingRegion
GameTextInputSpan GameTextInputState::composingRegion
A composing region defined on the text.
text_UTF8
const char * GameTextInputState::text_UTF8
Text owned by the state, as a modified UTF-8 string.
Null-terminated. https://en.wikipedia.org/wiki/UTF-8#Modified_UTF-8
text_length
int32_t GameTextInputState::text_length
Length in bytes of text_UTF8, not including the null at end.