# SubspacePlaceable

Artifact: [androidx.xr.compose:compose](https://developer.android.com/jetpack/androidx/releases/xr-compose) [View Source](https://cs.android.com/search?q=file:androidx/xr/compose/subspace/layout/SubspacePlaceable.kt+class:androidx.xr.compose.subspace.layout.SubspacePlaceable) Added in [1.0.0-beta02](https://developer.android.com/jetpack/androidx/releases/xr-compose#1.0.0-beta02)


```
abstract class SubspacePlaceable
```

<br />

*** ** * ** ***

A `https://developer.android.com/reference/kotlin/androidx/xr/compose/subspace/layout/SubspacePlaceable` corresponds to a child layout that can be positioned by its parent layout. Most `https://developer.android.com/reference/kotlin/androidx/xr/compose/subspace/layout/SubspacePlaceable` are the result of a `https://developer.android.com/reference/kotlin/androidx/xr/compose/subspace/layout/SubspaceMeasurable#measure(androidx.xr.compose.unit.VolumeConstraints)` call.

Based on `https://developer.android.com/reference/kotlin/androidx/compose/ui/layout/Placeable`.

## Summary

| ### Nested types |
|---|
| `abstract class https://developer.android.com/reference/kotlin/androidx/xr/compose/subspace/layout/SubspacePlaceable.SubspacePlacementScope` Receiver scope that permits explicit placement of a `https://developer.android.com/reference/kotlin/androidx/xr/compose/subspace/layout/SubspacePlaceable`. |

| ### Public constructors |
|---|
| `https://developer.android.com/reference/kotlin/androidx/xr/compose/subspace/layout/SubspacePlaceable#SubspacePlaceable()()` |

| ### Protected functions |
|---|---|
| `abstract https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/xr/compose/subspace/layout/SubspacePlaceable#placeAt(androidx.xr.runtime.math.Pose)(pose: https://developer.android.com/reference/kotlin/androidx/xr/runtime/math/Pose)` Positions the `https://developer.android.com/reference/kotlin/androidx/xr/compose/subspace/layout/SubspacePlaceable` at `https://developer.android.com/reference/kotlin/androidx/xr/compose/subspace/layout/SubspacePlaceable#placeAt(androidx.xr.runtime.math.Pose)` in its parent's coordinate system. |

| ### Public properties |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/xr/compose/subspace/layout/SubspacePlaceable#depth()` The depth, in pixels, of the measured layout, as seen by the parent. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/xr/compose/subspace/layout/SubspacePlaceable#height()` The height, in pixels, of the measured layout, as seen by the parent. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/xr/compose/subspace/layout/SubspacePlaceable#measuredDepth()` The measured depth of the layout. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/xr/compose/subspace/layout/SubspacePlaceable#measuredHeight()` The measured height of the layout. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/xr/compose/subspace/layout/SubspacePlaceable#measuredWidth()` The measured width of the layout. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/xr/compose/subspace/layout/SubspacePlaceable#width()` The width, in pixels, of the measured layout, as seen by the parent. |

| ### Protected properties |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/xr/compose/unit/VolumeConstraints` | `https://developer.android.com/reference/kotlin/androidx/xr/compose/subspace/layout/SubspacePlaceable#measurementConstraints()` The constraints used for the measurement made to obtain this `https://developer.android.com/reference/kotlin/androidx/xr/compose/subspace/layout/SubspacePlaceable`. |

## Public constructors

### SubspacePlaceable

Added in [1.0.0-beta02](https://developer.android.com/jetpack/androidx/releases/xr-compose#1.0.0-beta02)

```
SubspacePlaceable()
```

## Protected functions

### placeAt

Added in [1.0.0-beta02](https://developer.android.com/jetpack/androidx/releases/xr-compose#1.0.0-beta02)

```
protected abstract fun placeAt(pose: Pose): Unit
```

Positions the `https://developer.android.com/reference/kotlin/androidx/xr/compose/subspace/layout/SubspacePlaceable` at `https://developer.android.com/reference/kotlin/androidx/xr/compose/subspace/layout/SubspacePlaceable#placeAt(androidx.xr.runtime.math.Pose)` in its parent's coordinate system.

## Public properties

### depth

Added in [1.0.0-beta02](https://developer.android.com/jetpack/androidx/releases/xr-compose#1.0.0-beta02)

```
val depth: Int
```

The depth, in pixels, of the measured layout, as seen by the parent. This will usually coincide with the measured depth of the layout (aka the `depth` value passed into `https://developer.android.com/reference/kotlin/androidx/xr/compose/subspace/layout/SubspaceMeasureScope#layout(kotlin.Int,kotlin.Int,kotlin.Int,kotlin.Function1)`), but can be different if the layout does not respect its incoming constraints: in these cases the depth will be coerced inside the min and max depth constraints - to access the actual depth that the layout measured itself to, use `https://developer.android.com/reference/kotlin/androidx/xr/compose/subspace/layout/SubspacePlaceable#measuredDepth()`.

### height

Added in [1.0.0-beta02](https://developer.android.com/jetpack/androidx/releases/xr-compose#1.0.0-beta02)

```
val height: Int
```

The height, in pixels, of the measured layout, as seen by the parent. This will usually coincide with the measured height of the layout (aka the `height` value passed into `https://developer.android.com/reference/kotlin/androidx/xr/compose/subspace/layout/SubspaceMeasureScope#layout(kotlin.Int,kotlin.Int,kotlin.Int,kotlin.Function1)`), but can be different if the layout does not respect its incoming constraints: in these cases the height will be coerced inside the min and max height constraints - to access the actual height that the layout measured itself to, use `https://developer.android.com/reference/kotlin/androidx/xr/compose/subspace/layout/SubspacePlaceable#measuredHeight()`.

### measuredDepth

Added in [1.0.0-beta02](https://developer.android.com/jetpack/androidx/releases/xr-compose#1.0.0-beta02)

```
var measuredDepth: Int
```

The measured depth of the layout. This might not respect `https://developer.android.com/reference/kotlin/androidx/xr/compose/subspace/layout/SubspacePlaceable#measurementConstraints()`.

### measuredHeight

Added in [1.0.0-beta02](https://developer.android.com/jetpack/androidx/releases/xr-compose#1.0.0-beta02)

```
var measuredHeight: Int
```

The measured height of the layout. This might not respect `https://developer.android.com/reference/kotlin/androidx/xr/compose/subspace/layout/SubspacePlaceable#measurementConstraints()`.

### measuredWidth

Added in [1.0.0-beta02](https://developer.android.com/jetpack/androidx/releases/xr-compose#1.0.0-beta02)

```
var measuredWidth: Int
```

The measured width of the layout. This might not respect `https://developer.android.com/reference/kotlin/androidx/xr/compose/subspace/layout/SubspacePlaceable#measurementConstraints()`.

### width

Added in [1.0.0-beta02](https://developer.android.com/jetpack/androidx/releases/xr-compose#1.0.0-beta02)

```
val width: Int
```

The width, in pixels, of the measured layout, as seen by the parent. This will usually coincide with the measured width of the layout (aka the `width` value passed into `https://developer.android.com/reference/kotlin/androidx/xr/compose/subspace/layout/SubspaceMeasureScope#layout(kotlin.Int,kotlin.Int,kotlin.Int,kotlin.Function1)`), but can be different if the layout does not respect its incoming constraints: in these cases the width will be coerced inside the min and max width constraints - to access the actual width that the layout measured itself to, use `https://developer.android.com/reference/kotlin/androidx/xr/compose/subspace/layout/SubspacePlaceable#measuredWidth()`.

## Protected properties

### measurementConstraints

Added in [1.0.0-beta02](https://developer.android.com/jetpack/androidx/releases/xr-compose#1.0.0-beta02)

```
protected var measurementConstraints: VolumeConstraints
```

The constraints used for the measurement made to obtain this `https://developer.android.com/reference/kotlin/androidx/xr/compose/subspace/layout/SubspacePlaceable`.