MCPcopy Create free account
hub / github.com/Wemino/EchoPatch / TableQueueSetColumnDisplayOrder

Method TableQueueSetColumnDisplayOrder

include/imgui/imgui_tables.cpp:778–786  ·  view source on GitHub ↗

Reorder requested by user interaction.

Source from the content-addressed store, hash-verified

776
777// Reorder requested by user interaction.
778void 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
789static void TableSetupColumnFlags(ImGuiTable* table, ImGuiTableColumn* column, ImGuiTableColumnFlags flags_in)

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected