SubspaceLayoutCoordinates

interface SubspaceLayoutCoordinates


A holder of the measured bounds.

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

Summary

Public properties

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 hierarchy, with translation in pixels.

open Vector3

This property is deprecated. Use pose.position instead

open Vector3

This property is deprecated. Use poseInParentEntity.position instead

open Vector3

This property is deprecated. Use poseInRoot.position instead

open Quaternion

This property is deprecated. Use pose.rotation instead

open Quaternion

This property is deprecated. Use poseInParentEntity.rotation instead

open Quaternion

This property is deprecated. Use poseInRoot.rotation instead

IntVolumeSize

The size of this layout in the local coordinates space.

Extension functions

String

Returns information on pose, position and size.

Public properties

pose

Added in 1.0.0-alpha01
val posePose

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

poseInParentEntity

Added in 1.0.0-alpha01
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-alpha01
val poseInRootPose

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

position

Added in 1.0.0-alpha01
Deprecated in 1.0.0-alpha01
open val positionVector3

The position of the pose.

positionInParentEntity

Added in 1.0.0-alpha01
Deprecated in 1.0.0-alpha01
open val positionInParentEntityVector3

The position of this layout relative to its parent entity in the Compose hierarchy.

positionInRoot

Added in 1.0.0-alpha01
Deprecated in 1.0.0-alpha01
open val positionInRootVector3

The position of this layout relative to the root entity of the Compose hierarchy.

For testing only.

rotation

Added in 1.0.0-alpha01
Deprecated in 1.0.0-alpha01
open val rotationQuaternion

The rotation of the pose.

rotationInParentEntity

Added in 1.0.0-alpha01
Deprecated in 1.0.0-alpha01
open val rotationInParentEntityQuaternion

The rotation of this layout relative to its parent entity in the Compose hierarchy.

rotationInRoot

Added in 1.0.0-alpha01
Deprecated in 1.0.0-alpha01
open val rotationInRootQuaternion

The rotation of this layout relative to the root entity of the Compose hierarchy.

For testing only.

size

Added in 1.0.0-alpha01
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.

Extension functions

toDebugString

fun SubspaceLayoutCoordinates.toDebugString(): String

Returns information on pose, position and size.