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

Method TableSetColumnIndex

include/imgui/imgui_tables.cpp:2147–2165  ·  view source on GitHub ↗

[Public] Append into a specific column

Source from the content-addressed store, hash-verified

2145
2146// [Public] Append into a specific column
2147bool ImGui::TableSetColumnIndex(int column_n)
2148{
2149 ImGuiContext& g = *GImGui;
2150 ImGuiTable* table = g.CurrentTable;
2151 if (!table)
2152 return false;
2153
2154 if (table->CurrentColumn != column_n)
2155 {
2156 if (table->CurrentColumn != -1)
2157 TableEndCell(table);
2158 IM_ASSERT_USER_ERROR_RETV(column_n >= 0 && column_n < table->ColumnsCount, false, "TableSetColumnIndex() invalid column index!");
2159 TableBeginCell(table, column_n);
2160 }
2161
2162 // Return whether the column is visible. User may choose to skip submitting items based on this return value,
2163 // however they shouldn't skip submitting for columns that may have the tallest contribution to row height.
2164 return table->Columns[column_n].IsRequestOutput;
2165}
2166
2167// [Public] Append into the next column, wrap and create a new row when already on last column
2168bool ImGui::TableNextColumn()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected