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

Method SetSelection

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

Source from the content-addressed store, hash-verified

4330int ImGuiInputTextState::GetSelectionStart() const { return Stb->select_start; }
4331int ImGuiInputTextState::GetSelectionEnd() const { return Stb->select_end; }
4332void ImGuiInputTextState::SetSelection(int start, int end) { Stb->select_start = start; Stb->cursor = Stb->select_end = end; }
4333float ImGuiInputTextState::GetPreferredOffsetX() const { return Stb->has_preferred_x ? Stb->preferred_x : -1; }
4334void ImGuiInputTextState::SelectAll() { Stb->select_start = 0; Stb->cursor = Stb->select_end = TextLen; Stb->has_preferred_x = 0; }
4335void ImGuiInputTextState::ReloadUserBufAndSelectAll() { WantReloadUserBuf = true; ReloadSelectionStart = 0; ReloadSelectionEnd = INT_MAX; }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected