SubspaceModifier.Node

abstract class SubspaceModifier.Node


The longer-lived object that is created for each SubspaceModifierElement applied to a SubspaceLayout

Summary

Public constructors

Extension functions

Sequence<SubspaceModifier.Node>

Generates a lazy sequence that walks up the node tree to the root.

Sequence<SubspaceModifier.Node>

Generates a lazy sequence that walks down the node tree.

Sequence<SubspaceModifier.Node>

Generates a sequence with self and elements up the node tree to the root.

Sequence<SubspaceModifier.Node>

Generates a sequence with self and elements down the node tree.

Public constructors

Node

Added in 1.0.0-alpha01
Node()

Extension functions

traverseAncestors

fun SubspaceModifier.Node.traverseAncestors(): Sequence<SubspaceModifier.Node>

Generates a lazy sequence that walks up the node tree to the root.

If this node is the root, an empty sequence is returned.

traverseDescendants

fun SubspaceModifier.Node.traverseDescendants(): Sequence<SubspaceModifier.Node>

Generates a lazy sequence that walks down the node tree.

If this node is a leaf node, an empty sequence is returned.

traverseSelfThenAncestors

fun SubspaceModifier.Node.traverseSelfThenAncestors(): Sequence<SubspaceModifier.Node>

Generates a sequence with self and elements up the node tree to the root.

traverseSelfThenDescendants

fun SubspaceModifier.Node.traverseSelfThenDescendants(): Sequence<SubspaceModifier.Node>

Generates a sequence with self and elements down the node tree.