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

Function HasSelection

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

Source from the content-addressed store, hash-verified

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; }
292 void OnKeyPressed(int key);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected