Searched defs:ImGuiInputTextState (Results 1 – 2 of 2) sorted by relevance
540 struct IMGUI_API ImGuiInputTextState struct559 ImGuiInputTextState() { memset(this, 0, sizeof(*this)); } in ImGuiInputTextState() argument560 … // After a user-input the cursor stays on for a while without blinking in CursorAnimReset()561 …; StbState.select_start = ImMin(StbState.select_start, CurLenW); StbState.select_end = ImMin(StbSt… in CursorClamp()562 … HasSelection() const { return StbState.select_start != StbState.select_end; } in HasSelection()563 … ClearSelection() { StbState.select_start = StbState.select_end = StbState.cursor; } in ClearSelection()564 …ect_start = 0; StbState.cursor = StbState.select_end = CurLenW; StbState.has_preferred_x = false; } in SelectAll()
1006 struct IMGUI_API ImGuiInputTextState struct1025 ImGuiInputTextState() { memset(this, 0, sizeof(*this)); } in ImGuiInputTextState() argument1026 … ClearText() { CurLenW = CurLenA = 0; TextW[0] = 0; TextA[0] = 0; CursorClamp(); } in ClearText()1027 void ClearFreeMemory() { TextW.clear(); TextA.clear(); InitialTextA.clear(); } in ClearFreeMemory()1028 int GetUndoAvailCount() const { return Stb.undostate.undo_point; } in GetUndoAvailCount()1029 … GetRedoAvailCount() const { return STB_TEXTEDIT_UNDOSTATECOUNT - Stb.undostate.redo_point; } in GetRedoAvailCount()1033 … // After a user-input the cursor stays on for a while without blinking in CursorAnimReset()1034 …select_start = ImMin(Stb.select_start, CurLenW); Stb.select_end = ImMin(Stb.select_end, CurLenW); } in CursorClamp()1035 bool HasSelection() const { return Stb.select_start != Stb.select_end; } in HasSelection()1036 void ClearSelection() { Stb.select_start = Stb.select_end = Stb.cursor; } in ClearSelection()[all …]