<div class='sourceset sourceset-android'>Android</div>

```kotlin
public interface SubspaceMeasureScope : Density
```

The receiver scope of a layout's measure lambda. The return value of the measure lambda is
[SubspaceMeasureResult](/jetpack-compose/androidx.xr.compose/compose/interfaces/SubspaceMeasureResult), which should be returned by [layout](/jetpack-compose/androidx.xr.compose/compose/functions/layout)

Based on [androidx.compose.ui.layout.MeasureScope](/jetpack-compose/androidx.compose.ui/ui/interfaces/MeasureScope).

## Functions

<h2 id="layout-width-height-depth-placementblock">layout</h2>

```kotlin
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](/jetpack-compose/androidx.xr.compose/compose/classes/SubspacePlaceable) 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 |