| 2096 | void SelectAll() { SelectionStart = 0; SelectionEnd = BufTextLen; } |
| 2097 | void ClearSelection() { SelectionStart = SelectionEnd = BufTextLen; } |
| 2098 | bool HasSelection() const { return SelectionStart != SelectionEnd; } |
| 2099 | }; |
| 2100 | |
| 2101 | // Resizing callback data to apply custom constraint. As enabled by SetNextWindowSizeConstraints(). Callback is called during the next Begin(). |