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

Method TableQueueSetColumnDisplayOrder

include/imgui/imgui_tables.cpp:779–787  ·  view source on GitHub ↗

Reorder requested by user interaction.

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected