SubspaceSemanticsNode

class SubspaceSemanticsNode


A list of key/value pairs associated with a layout node or its subtree.

Each SubspaceSemanticsNode takes its id and initial key/value list from the outermost modifier on one layout node. It also contains the "collapsed" configuration of any other semantics modifiers on the same layout node.

Summary

Public properties

List<SubspaceSemanticsNode>

The children of this node in the semantics tree.

List<Component>?

The components attached to this node by SubspaceLayoutNode update.

SemanticsConfiguration

The semantics configuration of this node.

Int

The unique ID of this semantics node.

Boolean

Whether this node is the root of a semantics tree.

SubspaceSemanticsNode?

The parent of this node in the semantics tree.

Vector3

The position of this node relative to its parent layout node in the Compose hierarchy, in pixels.

Vector3

The position of this node relative to the root of this Compose hierarchy, in pixels.

Quaternion

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

Quaternion

The rotation of this node relative to the root of this Compose hierarchy.

Float

The scale factor of this node relative to its parent.

IntVolumeSize

The size of the bounding box for this node.

Public properties

children

Added in 1.0.0-alpha01
val childrenList<SubspaceSemanticsNode>

The children of this node in the semantics tree.

The children are ordered in inverse hit test order (i.e., paint order).

components

Added in 1.0.0-alpha01
val componentsList<Component>?

The components attached to this node by SubspaceLayoutNode update.

config

Added in 1.0.0-alpha01
val configSemanticsConfiguration

The semantics configuration of this node.

This includes all properties attached as modifiers to the current layout node.

id

Added in 1.0.0-alpha01
val idInt

The unique ID of this semantics node.

isRoot

Added in 1.0.0-alpha01
val isRootBoolean

Whether this node is the root of a semantics tree.

parent

Added in 1.0.0-alpha01
val parentSubspaceSemanticsNode?

The parent of this node in the semantics tree.

position

Added in 1.0.0-alpha01
val positionVector3

The position of this node relative to its parent layout node in the Compose hierarchy, in pixels.

positionInRoot

Added in 1.0.0-alpha01
val positionInRootVector3

The position of this node relative to the root of this Compose hierarchy, in pixels.

rotation

Added in 1.0.0-alpha01
val rotationQuaternion

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

rotationInRoot

Added in 1.0.0-alpha01
val rotationInRootQuaternion

The rotation of this node relative to the root of this Compose hierarchy.

scale

Added in 1.0.0-alpha01
val scaleFloat

The scale factor of this node relative to its parent.

size

Added in 1.0.0-alpha01
val sizeIntVolumeSize

The size of the bounding box for this node.