MCPcopy Create free account
hub / github.com/KebsCS/KBotExt / TableNextRow

Method TableNextRow

KBotExt/imgui/imgui_tables.cpp:1735–1758  ·  view source on GitHub ↗

[Public] Starts into the first cell of a new row

Source from the content-addressed store, hash-verified

1733
1734// [Public] Starts into the first cell of a new row
1735void ImGui::TableNextRow(ImGuiTableRowFlags row_flags, float row_min_height)
1736{
1737 ImGuiContext& g = *GImGui;
1738 ImGuiTable* table = g.CurrentTable;
1739
1740 if (!table->IsLayoutLocked)
1741 TableUpdateLayout(table);
1742 if (table->IsInsideRow)
1743 TableEndRow(table);
1744
1745 table->LastRowFlags = table->RowFlags;
1746 table->RowFlags = row_flags;
1747 table->RowCellPaddingY = g.Style.CellPadding.y;
1748 table->RowMinHeight = row_min_height;
1749 TableBeginRow(table);
1750
1751 // We honor min_row_height requested by user, but cannot guarantee per-row maximum height,
1752 // because that would essentially require a unique clipping rectangle per-cell.
1753 table->RowPosY2 += table->RowCellPaddingY * 2.0f;
1754 table->RowPosY2 = ImMax(table->RowPosY2, table->RowPosY1 + row_min_height);
1755
1756 // Disable output until user calls TableNextColumn()
1757 table->InnerWindow->SkipItems = true;
1758}
1759
1760// [Internal] Only called by TableNextRow()
1761void ImGui::TableBeginRow(ImGuiTable* table)

Callers

nothing calls this directly

Calls 1

ImMaxFunction · 0.85

Tested by

no test coverage detected