Android
public interface SubspaceMeasureScope : Density
The receiver scope of a layout's measure lambda. The return value of the measure lambda is SubspaceMeasureResult, which should be returned by layout
Based on androidx.compose.ui.layout.MeasureScope.
Functions
layout
public fun layout(
width: Int,
height: Int,
depth: Int,
placementBlock: SubspacePlaceable.SubspacePlacementScope.() -> Unit,
): SubspaceMeasureResult
Sets the size and alignment lines of the measured layout, as well as the positioning block that defines the children positioning logic. The placementBlock is a lambda used for positioning children. SubspacePlaceable.placeAt should be called on children inside placementBlock.
Parameters
| width | the measured width of the layout, in pixels |
| height | the measured height of the layout, in pixels |
| depth | the measured depth of the layout, in pixels |
| placementBlock | block defining the children positioning of the current layout |