MCPcopy Create free account
hub / github.com/Aegel5/SimpleSwitcher / ClearSelection

Method ClearSelection

imgui_tiny_app/imgui/imgui_widgets.cpp:4315–4315  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4313void ImGuiInputTextState::CursorClamp() { Stb->cursor = ImMin(Stb->cursor, TextLen); Stb->select_start = ImMin(Stb->select_start, TextLen); Stb->select_end = ImMin(Stb->select_end, TextLen); }
4314bool ImGuiInputTextState::HasSelection() const { return Stb->select_start != Stb->select_end; }
4315void ImGuiInputTextState::ClearSelection() { Stb->select_start = Stb->select_end = Stb->cursor; }
4316int ImGuiInputTextState::GetCursorPos() const { return Stb->cursor; }
4317int ImGuiInputTextState::GetSelectionStart() const { return Stb->select_start; }
4318int ImGuiInputTextState::GetSelectionEnd() const { return Stb->select_end; }

Callers 1

InputTextExMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected