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

Method TableNextColumn

include/imgui/imgui_tables.cpp:2168–2190  ·  view source on GitHub ↗

[Public] Append into the next column, wrap and create a new row when already on last column

Source from the content-addressed store, hash-verified

2166
2167// [Public] Append into the next column, wrap and create a new row when already on last column
2168bool ImGui::TableNextColumn()
2169{
2170 ImGuiContext& g = *GImGui;
2171 ImGuiTable* table = g.CurrentTable;
2172 if (!table)
2173 return false;
2174
2175 if (table->IsInsideRow && table->CurrentColumn + 1 < table->ColumnsCount)
2176 {
2177 if (table->CurrentColumn != -1)
2178 TableEndCell(table);
2179 TableBeginCell(table, table->CurrentColumn + 1);
2180 }
2181 else
2182 {
2183 TableNextRow();
2184 TableBeginCell(table, 0);
2185 }
2186
2187 // Return whether the column is visible. User may choose to skip submitting items based on this return value,
2188 // however they shouldn't skip submitting for columns that may have the tallest contribution to row height.
2189 return table->Columns[table->CurrentColumn].IsRequestOutput;
2190}
2191
2192
2193// [Internal] Called by TableSetColumnIndex()/TableNextColumn()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected