Google is committed to advancing racial equity for Black communities. See how.

MeasureBlocks

interface MeasureBlocks
androidx.compose.ui.node.LayoutNode.MeasureBlocks

Summary

Public methods
abstract Int
maxIntrinsicHeight(intrinsicMeasureScope: IntrinsicMeasureScope, measurables: List<IntrinsicMeasurable>, w: Int)

The lambda used to calculate IntrinsicMeasurable.maxIntrinsicHeight.

abstract Int
maxIntrinsicWidth(intrinsicMeasureScope: IntrinsicMeasureScope, measurables: List<IntrinsicMeasurable>, h: Int)

The function used to calculate IntrinsicMeasurable.maxIntrinsicWidth.

abstract MeasureResult
measure(measureScope: MeasureScope, measurables: List<Measurable>, constraints: Constraints)

The function used to measure the child.

abstract Int
minIntrinsicHeight(intrinsicMeasureScope: IntrinsicMeasureScope, measurables: List<IntrinsicMeasurable>, w: Int)

The lambda used to calculate IntrinsicMeasurable.minIntrinsicHeight.

abstract Int
minIntrinsicWidth(intrinsicMeasureScope: IntrinsicMeasureScope, measurables: List<IntrinsicMeasurable>, h: Int)

The function used to calculate IntrinsicMeasurable.minIntrinsicWidth.

Public methods

maxIntrinsicHeight

abstract fun maxIntrinsicHeight(
    intrinsicMeasureScope: IntrinsicMeasureScope,
    measurables: List<IntrinsicMeasurable>,
    w: Int
): Int

The lambda used to calculate IntrinsicMeasurable.maxIntrinsicHeight.

maxIntrinsicWidth

abstract fun maxIntrinsicWidth(
    intrinsicMeasureScope: IntrinsicMeasureScope,
    measurables: List<IntrinsicMeasurable>,
    h: Int
): Int

The function used to calculate IntrinsicMeasurable.maxIntrinsicWidth.

measure

abstract fun measure(
    measureScope: MeasureScope,
    measurables: List<Measurable>,
    constraints: Constraints
): MeasureResult

The function used to measure the child. It must call MeasureScope.layout before completing.

minIntrinsicHeight

abstract fun minIntrinsicHeight(
    intrinsicMeasureScope: IntrinsicMeasureScope,
    measurables: List<IntrinsicMeasurable>,
    w: Int
): Int

The lambda used to calculate IntrinsicMeasurable.minIntrinsicHeight.

minIntrinsicWidth

abstract fun minIntrinsicWidth(
    intrinsicMeasureScope: IntrinsicMeasureScope,
    measurables: List<IntrinsicMeasurable>,
    h: Int
): Int

The function used to calculate IntrinsicMeasurable.minIntrinsicWidth.