// Flags for GetTypingSelectRequest(), TypingSelectFindResult()
enumImGuiTypingSelectFlags_
{
ImGuiTypingSelectFlags_None=0,
ImGuiTypingSelectFlags_AllowBackspace=1<<0,// Backspace to delete character inputs. If using: ensure GetTypingSelectRequest() is not called more than once per frame (filter by e.g. focus state)
ImGuiTypingSelectFlags_None=0,
ImGuiTypingSelectFlags_AllowBackspace=1<<0,// Backspace to delete character inputs. If using: ensure GetTypingSelectRequest() is not called more than once per frame (filter by e.g. focus state)
ImGuiTypingSelectFlags_AllowSingleCharMode=1<<1,// Allow "single char" search mode which is activated when pressing the same character multiple times.
};
// Returned by GetTypingSelectRequest(), designed to eventually be public.
structIMGUI_APIImGuiTypingSelectRequest
{
constchar*SearchBuffer;
intSearchBufferLen;
boolSelectRequest;// Set when buffer was modified this frame, requesting a selection.
boolRepeatCharMode;// Notify when buffer contains same character repeated, to implement special mode.
ImS8RepeatCharSize;// Length in bytes of first letter codepoint (1 for ascii, 2-4 for UTF-8). If (SearchBufferLen==RepeatCharSize) only 1 letter has been input.
ImGuiTypingSelectFlagsFlags;// Flags passed to GetTypingSelectRequest()
intSearchBufferLen;
constchar*SearchBuffer;
boolSelectRequest;// Set when buffer was modified this frame, requesting a selection.
boolSingleCharMode;// Notify when buffer contains same character repeated, to implement special mode.
ImS8SingleCharSize;// Length in bytes of first letter codepoint (1 for ascii, 2-4 for UTF-8). If (SearchBufferLen==RepeatCharSize) only 1 letter has been input.