MCPcopy Create free account
hub / github.com/TheRealMJP/DeferredTexturing / CursorClamp

Function CursorClamp

Externals/imgui-1.46/Include/imgui_internal.h:288–288  ·  view source on GitHub ↗

After a user-input the cursor stays on for a while without blinking

Source from the content-addressed store, hash-verified

286 ImGuiTextEditState() { memset(this, 0, sizeof(*this)); }
287 void CursorAnimReset() { CursorAnim = -0.30f; } // After a user-input the cursor stays on for a while without blinking
288 void CursorClamp() { StbState.cursor = ImMin(StbState.cursor, CurLenW); StbState.select_start = ImMin(StbState.select_start, CurLenW); StbState.select_end = ImMin(StbState.select_end, CurLenW); }
289 bool HasSelection() const { return StbState.select_start != StbState.select_end; }
290 void ClearSelection() { StbState.select_start = StbState.select_end = StbState.cursor; }
291 void SelectAll() { StbState.select_start = 0; StbState.select_end = CurLenW; StbState.cursor = StbState.select_end; StbState.has_preferred_x = false; }

Callers

nothing calls this directly

Calls 1

ImMinFunction · 0.85

Tested by

no test coverage detected