# SubspaceLayoutCoordinates

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/SubspaceLayoutCoordinates.kt+class:androidx.xr.compose.subspace.layout.SubspaceLayoutCoordinates) Added in [1.0.0-beta02](https://developer.android.com/jetpack/androidx/releases/xr-compose#1.0.0-beta02)


```
interface SubspaceLayoutCoordinates
```

<br />

*** ** * ** ***

A holder of the measured bounds.

## Summary

| ### Public properties |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/xr/compose/subspace/layout/SubspaceLayoutCoordinates?` | `https://developer.android.com/reference/kotlin/androidx/xr/compose/subspace/layout/SubspaceLayoutCoordinates#parentCoordinates()` The coordinates of the immediate parent in the layout hierarchy. |
| `https://developer.android.com/reference/kotlin/androidx/xr/compose/subspace/layout/SubspaceLayoutCoordinates?` | `https://developer.android.com/reference/kotlin/androidx/xr/compose/subspace/layout/SubspaceLayoutCoordinates#parentLayoutCoordinates()` The coordinates of the nearest parent layout, skipping any intermediate modifiers. |
| `https://developer.android.com/reference/kotlin/androidx/xr/runtime/math/Pose` | `https://developer.android.com/reference/kotlin/androidx/xr/compose/subspace/layout/SubspaceLayoutCoordinates#pose()` The pose of this layout in the local coordinates space, with translation in pixels. |
| `https://developer.android.com/reference/kotlin/androidx/xr/runtime/math/Pose` | `https://developer.android.com/reference/kotlin/androidx/xr/compose/subspace/layout/SubspaceLayoutCoordinates#poseInParent()` The pose of this layout relative to its parent in the Compose hierarchy, with translation in pixels. |
| `https://developer.android.com/reference/kotlin/androidx/xr/runtime/math/Pose` | `https://developer.android.com/reference/kotlin/androidx/xr/compose/subspace/layout/SubspaceLayoutCoordinates#poseInRoot()` The pose of this layout relative to the root of the Compose for XR's hierarchy with translation values in pixels. |
| `https://developer.android.com/reference/kotlin/androidx/xr/compose/unit/IntVolumeSize` | `https://developer.android.com/reference/kotlin/androidx/xr/compose/subspace/layout/SubspaceLayoutCoordinates#size()` The size of this layout in the local coordinates space. |

## Public properties

### parentCoordinates

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

```
val parentCoordinates: SubspaceLayoutCoordinates?
```

The coordinates of the immediate parent in the layout hierarchy.

For a layout, this is its parent layout. For a modifier, this is the modifier that preceded it, or the layout it is attached to if it is the first in the chain.

Returns `null` only for the root of the hierarchy.

### parentLayoutCoordinates

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

```
val parentLayoutCoordinates: SubspaceLayoutCoordinates?
```

The coordinates of the nearest parent layout, skipping any intermediate modifiers.

This is useful for positioning relative to the containing layout composable, irrespective of any modifiers applied to it.

Returns `null` only for the root of the hierarchy.

### pose

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

```
val pose: Pose
```

The pose of this layout in the local coordinates space, with translation in pixels.

### poseInParent

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

```
val poseInParent: Pose
```

The pose of this layout relative to its parent in the Compose hierarchy, with translation in pixels.

### poseInRoot

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

```
val poseInRoot: Pose
```

The pose of this layout relative to the root of the Compose for XR's hierarchy with translation values in pixels.

### size

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

```
val size: IntVolumeSize
```

The size of this layout in the local coordinates space.

This is also useful for providing the size of the node to the `https://developer.android.com/reference/kotlin/androidx/xr/compose/subspace/layout/package-summary#(androidx.xr.compose.subspace.layout.SubspaceModifier).onGloballyPositioned(kotlin.Function1)` subspace modifier.