Tables: Made it possible to change style.CellPadding.y between rows. Added demo.

This commit is contained in:
ocornut
2023-09-04 11:20:20 +02:00
parent 3816d478df
commit e8a5c9e1b8
6 changed files with 28 additions and 7 deletions

View File

@ -2630,9 +2630,9 @@ struct IMGUI_API ImGuiTable
float HostIndentX;
float MinColumnWidth;
float OuterPaddingX;
float CellPaddingX; // Padding from each borders
float CellPaddingY;
float CellSpacingX1; // Spacing between non-bordered cells
float CellPaddingX; // Padding from each borders. Locked in BeginTable()/Layout.
float CellPaddingY; // Top and bottom padding. Reloaded during row change.
float CellSpacingX1; // Spacing between non-bordered cells. Locked in BeginTable()/Layout.
float CellSpacingX2;
float InnerWidth; // User value passed to BeginTable(), see comments at the top of BeginTable() for details.
float ColumnsGivenWidth; // Sum of current column width