[Public] Starts into the first cell of a new row
| 1916 | |
| 1917 | // [Public] Starts into the first cell of a new row |
| 1918 | void ImGui::TableNextRow(ImGuiTableRowFlags row_flags, float row_min_height) |
| 1919 | { |
| 1920 | ImGuiContext& g = *GImGui; |
| 1921 | ImGuiTable* table = g.CurrentTable; |
| 1922 | |
| 1923 | if (!table->IsLayoutLocked) |
| 1924 | TableUpdateLayout(table); |
| 1925 | if (table->IsInsideRow) |
| 1926 | TableEndRow(table); |
| 1927 | |
| 1928 | table->LastRowFlags = table->RowFlags; |
| 1929 | table->RowFlags = row_flags; |
| 1930 | table->RowCellPaddingY = g.Style.CellPadding.y; |
| 1931 | table->RowMinHeight = row_min_height; |
| 1932 | TableBeginRow(table); |
| 1933 | |
| 1934 | // We honor min_row_height requested by user, but cannot guarantee per-row maximum height, |
| 1935 | // because that would essentially require a unique clipping rectangle per-cell. |
| 1936 | table->RowPosY2 += table->RowCellPaddingY * 2.0f; |
| 1937 | table->RowPosY2 = ImMax(table->RowPosY2, table->RowPosY1 + row_min_height); |
| 1938 | |
| 1939 | // Disable output until user calls TableNextColumn() |
| 1940 | table->InnerWindow->SkipItems = true; |
| 1941 | } |
| 1942 | |
| 1943 | // [Internal] Only called by TableNextRow() |
| 1944 | void ImGui::TableBeginRow(ImGuiTable* table) |