SemanticsNode

class SemanticsNode
kotlin.Any
   ↳ androidx.ui.core.semantics.SemanticsNode

A node that represents some semantic data.

Summary

Companion functions

Int

Extension functions

From androidx.ui.core.semantics
SemanticsNode?

Executes selector on every parent of this SemanticsNode and returns the closest SemanticsNode to return true from selector or null if selector returns false for all ancestors.

Properties

PxBounds

The bounding box for this node relative to the root of this Compose hierarchy

List<SemanticsNode>

Contains the children in inverse hit test order (i.

LayoutNode

SemanticsConfiguration

The merged configuration of this node

PxBounds

PxPosition

Boolean

Whether this node has a non-zero number of children.

Int

The unique identifier for this node.

Boolean

Whether this SemanticNode is the root of a tree or not

Boolean

SemanticsNode?

The parent of this node in the tree.

IntPxSize

The size of the bounding box for this node

SemanticsConfiguration

Properties

boundsInRoot

val boundsInRoot: PxBounds

The bounding box for this node relative to the root of this Compose hierarchy

children

val children: List<SemanticsNode>

Contains the children in inverse hit test order (i.e. paint order).

componentNode

var componentNode: LayoutNode

config

val config: SemanticsConfiguration

The merged configuration of this node

globalBounds

val globalBounds: PxBounds

globalPosition

val globalPosition: PxPosition

hasChildren

val hasChildren: Boolean

Whether this node has a non-zero number of children.

id

val id: Int

The unique identifier for this node.

The root node has an id of zero. Other nodes are given a unique id when they are created.

isRoot

val isRoot: Boolean

Whether this SemanticNode is the root of a tree or not

isSemanticBoundary

val isSemanticBoundary: Boolean

parent

val parent: SemanticsNode?

The parent of this node in the tree.

size

val size: IntPxSize

The size of the bounding box for this node

unmergedConfig

val unmergedConfig: SemanticsConfiguration

Companion functions

generateNewId

fun generateNewId(): Int