MCPcopy Create free account
hub / github.com/Overload-Technologies/Overload / HasSelection

Method HasSelection

Dependencies/ImGui/src/imgui_widgets.cpp:4206–4206  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4204void ImGuiInputTextState::CursorAnimReset() { CursorAnim = -0.30f; } // After a user-input the cursor stays on for a while without blinking
4205void ImGuiInputTextState::CursorClamp() { Stb->cursor = ImMin(Stb->cursor, TextLen); Stb->select_start = ImMin(Stb->select_start, TextLen); Stb->select_end = ImMin(Stb->select_end, TextLen); }
4206bool ImGuiInputTextState::HasSelection() const { return Stb->select_start != Stb->select_end; }
4207void ImGuiInputTextState::ClearSelection() { Stb->select_start = Stb->select_end = Stb->cursor; }
4208int ImGuiInputTextState::GetCursorPos() const { return Stb->cursor; }
4209int ImGuiInputTextState::GetSelectionStart() const { return Stb->select_start; }

Callers 1

InputTextExMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected