public interface SubspaceLayoutCoordinates
A holder of the measured bounds.
Properties
pose
public val pose: Pose
The pose of this layout in the local coordinates space, with translation in pixels.
poseInParent
public val poseInParent: Pose
The pose of this layout relative to its parent in the Compose hierarchy, with translation in pixels.
poseInRoot
public val poseInRoot: Pose
The pose of this layout relative to the root of the Compose for XR's hierarchy with translation values in pixels.
parentCoordinates
public 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
public 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.
size
public 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 onGloballyPositioned subspace modifier.