INNER CODE UNIT · Kotlin
ResolvedGridItemIndicesResult
IacobIonut01/ReFra · commonMain/androidx/compose/foundation/layout/Grid.kt:888
private class ResolvedGridItemIndicesResult(
val gridItems: MutableObjectList<GridItem>,
val gridSize: IntSize,
)
/**
* The "Master Blueprint" holding the calculated pixel dimensions for the entire grid.
*
* This class acts as a lookup table during the measurement phase. Instead of recalculating sizes
* for every item, we compute the track sizes once and pass this object around.
*
* @property columnWidths Array containing the exact width in pixels for each column index.
* @property rowHeights Array containing the exact height in pixels for each row index.
* @property totalWidth The sum of all column widths plus gaps.
* @property totalHeight The sum of all row heights plus gaps.
* @property columnGapPx The spacing between columns.
* @property rowGapPx The spacing between rows.
*/