SubspaceLayoutCoordinates

interface SubspaceLayoutCoordinates


A holder of the measured bounds.

Based on androidx.compose.ui.layout.LayoutCoordinates.

Summary

Public properties

SubspaceLayoutCoordinates?

The coordinates of the immediate parent in the layout hierarchy.

SubspaceLayoutCoordinates?

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

Pose

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

Pose

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

Pose

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

IntVolumeSize

The size of this layout in the local coordinates space.

Public properties

parentCoordinates

Added in 1.0.0-alpha09
val parentCoordinatesSubspaceLayoutCoordinates?

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-alpha09
val parentLayoutCoordinatesSubspaceLayoutCoordinates?

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-alpha09
val posePose

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

poseInParentEntity

Added in 1.0.0-alpha09
val poseInParentEntityPose

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

poseInRoot

Added in 1.0.0-alpha09
val poseInRootPose

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

size

Added in 1.0.0-alpha09
val sizeIntVolumeSize

The size of this layout in the local coordinates space.

This is also useful for providing the size of the node to the OnGloballyPositionedModifier.