Reorder requested by user interaction.
| 776 | |
| 777 | // Reorder requested by user interaction. |
| 778 | void ImGui::TableQueueSetColumnDisplayOrder(ImGuiTable* table, int column_n, int dst_order) |
| 779 | { |
| 780 | const int src_order = table->Columns[column_n].DisplayOrder; |
| 781 | table->ReorderColumn = (ImGuiTableColumnIdx)column_n; |
| 782 | table->ReorderColumnDstOrder = (ImGuiTableColumnIdx)-1; |
| 783 | dst_order = TableGetMaxDisplayOrderAllowed(table, src_order, dst_order); |
| 784 | if (dst_order != src_order) |
| 785 | table->ReorderColumnDstOrder = (ImGuiTableColumnIdx)dst_order; |
| 786 | } |
| 787 | |
| 788 | // Adjust flags: default width mode + stretch columns are not allowed when auto extending |
| 789 | static void TableSetupColumnFlags(ImGuiTable* table, ImGuiTableColumn* column, ImGuiTableColumnFlags flags_in) |
nothing calls this directly
no test coverage detected