Fix sort direction if currently set on a value which is unavailable (e.g. activating NoSortAscending/NoSortDescending)
| 2703 | |
| 2704 | // Fix sort direction if currently set on a value which is unavailable (e.g. activating NoSortAscending/NoSortDescending) |
| 2705 | void ImGui::TableFixColumnSortDirection(ImGuiTable* table, ImGuiTableColumn* column) |
| 2706 | { |
| 2707 | if (column->SortOrder == -1 || (column->SortDirectionsAvailMask & (1 << column->SortDirection)) != 0) |
| 2708 | return; |
| 2709 | column->SortDirection = (ImU8)TableGetColumnAvailSortDirection(column, 0); |
| 2710 | table->IsSortSpecsDirty = true; |
| 2711 | } |
| 2712 | |
| 2713 | // Calculate next sort direction that would be set after clicking the column |
| 2714 | // - If the PreferSortDescending flag is set, we will default to a Descending direction on the first click. |
nothing calls this directly
no test coverage detected