Portals0.7.0 · dev (544a5c68c72e · 2026-11-28 UTC)
Loading...
Searching...
No Matches
portals::GridOptions Struct Reference

Owning sparse grid configuration; no implicit tracks or automatic placement. More...

#include <grid.hpp>

Public Attributes

std::vector< AxisSize > columns {AxisSize{}}
 Explicit horizontal tracks using shared size policies.
std::vector< AxisSize > rows {AxisSize{}}
 Explicit vertical tracks using shared size policies.
std::int32_t column_gap {}
 Nonnegative gap, included inside a spanning cell.
std::int32_t row_gap {}
 Nonnegative gap, included inside a spanning cell.
LayoutPadding padding
 Insets retained during shortage.
std::vector< GridCell > cells = std::vector<GridCell>(0)
 Unique identities; overlap is allowed in sibling order.
std::size_t max_tracks_per_axis {4096}
 Positive work budget for each explicit axis.
std::size_t max_placements {4096}
 Positive work budget, including inactive placements.
std::vector< AxisSize > header_rows = std::vector<AxisSize>(0)
 Independent header rows sharing columns.
bool sticky_header {}
 Fix header vertically when this grid owns scrolling.
bool regions {}
 Header/body presence fixed before mount, including empty regions.
GridPresentation presentation
 Owning backgrounds; does not alter child styles.

Detailed Description

Owning sparse grid configuration; no implicit tracks or automatic placement.


The documentation for this struct was generated from the following file: