After a user-input the cursor stays on for a while without blinking
| 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; } |