MeasuredTableCell

data class MeasuredTableCell(val content: MeasuredNode, val style: TableCellStyle, val offsetX: Float, val width: Float, val contentOffsetX: Float, val contentOffsetY: Float, val columnIndex: Int = 0, val colSpan: Int = 1, val rowSpan: Int = 1, val spannedHeight: Float = 0.0f)

One measured cell in a MeasuredTableRow.

Constructors

Link copied to clipboard
constructor(content: MeasuredNode, style: TableCellStyle, offsetX: Float, width: Float, contentOffsetX: Float, contentOffsetY: Float, columnIndex: Int = 0, colSpan: Int = 1, rowSpan: Int = 1, spannedHeight: Float = 0.0f)

Properties

Link copied to clipboard
val colSpan: Int = 1

Number of columns the cell occupies (>= 1).

Link copied to clipboard
val columnIndex: Int = 0

Grid column this cell starts at (its left edge).

Link copied to clipboard
Link copied to clipboard

Top-left y-offset within the row's interior (always 0 unless we add row sub-padding).

Link copied to clipboard
Link copied to clipboard

Top-left x-offset of the cell, relative to the table's top-left.

Link copied to clipboard
val rowSpan: Int = 1

Number of rows the cell occupies (>= 1).

Link copied to clipboard
val spannedHeight: Float = 0.0f

Drawn height of the cell — the sum of the heights of the rowSpan rows it covers. Equals the starting row's height for non-spanning cells, so existing single-row behaviour is unchanged.

Link copied to clipboard
Link copied to clipboard

Width of the cell (= sum of the colSpan column widths).