openrndr / org.openrndr.shape / TextNode

TextNode

data class TextNode : CompositionNode (source)

a CompositionNode that holds a single text

Constructors

<init>

a CompositionNode that holds a single text

TextNode(text: String, contour: ShapeContour?)

Properties

bounds

a Rectangle that describes the bounding box of the contents

val bounds: Rectangle

contour

var contour: ShapeContour?

text

var text: String

Extension Functions

findAll

fun CompositionNode.findAll(filter: (CompositionNode) -> Boolean): List<CompositionNode>

findGroups

find all descendant GroupNode nodes, including potentially this node

fun CompositionNode.findGroups(): List<GroupNode>

findImages

find all descendant ImageNode nodes, including potentially this node

fun CompositionNode.findImages(): List<ImageNode>

findShapes

find all descendant ShapeNode nodes, including potentially this node

fun CompositionNode.findShapes(): List<ShapeNode>

findTerminals

fun CompositionNode.findTerminals(filter: (CompositionNode) -> Boolean): List<CompositionNode>

remove

remove node from its parent CompositionNode

fun CompositionNode.remove(): Unit

visitAll

visit this CompositionNode and all descendant nodes and execute visitor

fun CompositionNode.visitAll(visitor: CompositionNode.() -> Unit): Unit