Placeable

sealed class Placeable

A child measured, and the handle its container places it by.

A placeable is one measurement of a child. It retains the component extent and layout modifier offsets computed for that measurement. The alignment lines of a Foundation container follow its latest measure.

Properties

Link copied to clipboard
abstract val height: Int

The height the parent sees: measuredHeight coerced inside the constraints passed to Measurable.measure.

Link copied to clipboard
abstract val measuredHeight: Int

The height the child actually measured itself to, before its parent coerced height.

Link copied to clipboard
abstract val measuredWidth: Int

The width the child actually measured itself to, before its parent coerced width.

Link copied to clipboard
abstract val width: Int

The width the parent sees: measuredWidth coerced inside the constraints passed to Measurable.measure.

Functions

Link copied to clipboard
open operator fun get(alignmentLine: AlignmentLine): Int

Where alignmentLine falls from the edge of the box this placeable is placed at, width by height, or AlignmentLine.UNSPECIFIED where the child provides no such line.