MCPcopy Create free account
hub / github.com/Wemino/MarkerPatch / ClearSelection

Method ClearSelection

include/imgui/imgui_widgets.cpp:4328–4328  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4326void ImGuiInputTextState::CursorClamp() { Stb->cursor = ImMin(Stb->cursor, TextLen); Stb->select_start = ImMin(Stb->select_start, TextLen); Stb->select_end = ImMin(Stb->select_end, TextLen); }
4327bool ImGuiInputTextState::HasSelection() const { return Stb->select_start != Stb->select_end; }
4328void ImGuiInputTextState::ClearSelection() { Stb->select_start = Stb->select_end = Stb->cursor; }
4329int ImGuiInputTextState::GetCursorPos() const { return Stb->cursor; }
4330int ImGuiInputTextState::GetSelectionStart() const { return Stb->select_start; }
4331int ImGuiInputTextState::GetSelectionEnd() const { return Stb->select_end; }

Callers 1

InputTextExMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected