MeasureBlocks

interface MeasureBlocks
androidx.ui.core.LayoutNode.MeasureBlocks

Summary

Public methods

abstract IntPx
maxIntrinsicHeight(densityScope: DensityScope, measurables: List<IntrinsicMeasurable>, w: IntPx)

The lambda used to calculate IntrinsicMeasurable.maxIntrinsicHeight.

abstract IntPx
maxIntrinsicWidth(densityScope: DensityScope, measurables: List<IntrinsicMeasurable>, h: IntPx)

The function used to calculate IntrinsicMeasurable.maxIntrinsicWidth.

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

The function used to measure the child.

abstract IntPx
minIntrinsicHeight(densityScope: DensityScope, measurables: List<IntrinsicMeasurable>, w: IntPx)

The lambda used to calculate IntrinsicMeasurable.minIntrinsicHeight.

abstract IntPx
minIntrinsicWidth(densityScope: DensityScope, measurables: List<IntrinsicMeasurable>, h: IntPx)

The function used to calculate IntrinsicMeasurable.minIntrinsicWidth.

Public methods

maxIntrinsicHeight

abstract fun maxIntrinsicHeight(
    densityScope: DensityScope,
    measurables: List<IntrinsicMeasurable>,
    w: IntPx
): IntPx

The lambda used to calculate IntrinsicMeasurable.maxIntrinsicHeight.

maxIntrinsicWidth

abstract fun maxIntrinsicWidth(
    densityScope: DensityScope,
    measurables: List<IntrinsicMeasurable>,
    h: IntPx
): IntPx

The function used to calculate IntrinsicMeasurable.maxIntrinsicWidth.

measure

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

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

minIntrinsicHeight

abstract fun minIntrinsicHeight(
    densityScope: DensityScope,
    measurables: List<IntrinsicMeasurable>,
    w: IntPx
): IntPx

The lambda used to calculate IntrinsicMeasurable.minIntrinsicHeight.

minIntrinsicWidth

abstract fun minIntrinsicWidth(
    densityScope: DensityScope,
    measurables: List<IntrinsicMeasurable>,
    h: IntPx
): IntPx

The function used to calculate IntrinsicMeasurable.minIntrinsicWidth.