MeasurePolicy¶
@Stable
fun interface MeasurePolicy
Defines how a LayoutNode measures itself and its children.
The scope parameter is the LayoutNode currently being measured, allowing measure policies to read node properties (e.g. padding) during layout.
Inheritors¶
Functions¶
measure¶
abstract fun measure(
scope: MeasureScope,
measurables: List<Measurable>,
constraints: Constraints
): MeasureResult
Measures measurables within constraints and returns a MeasureResult.
Parameters
-
scope: The
LayoutNodecurrently being measured (implementsMeasureScope). -
measurables: The child nodes to measure.
-
constraints: The size constraints imposed by the parent.