| 2189 | void SelectAll() { SelectionStart = 0; SelectionEnd = BufTextLen; } |
| 2190 | void ClearSelection() { SelectionStart = SelectionEnd = BufTextLen; } |
| 2191 | bool HasSelection() const { return SelectionStart != SelectionEnd; } |
| 2192 | }; |
| 2193 | |
| 2194 | // Resizing callback data to apply custom constraint. As enabled by SetNextWindowSizeConstraints(). Callback is called during the next Begin(). |