Attribute

abstract class Attribute<in Node, out T> : Function1<Node, T> , ReadOnlyProperty<Node, T>

An attribute of type T for nodes of type Node.

This class is meant to be used as a property delegate:

val height: Int by attribute { ... }

Constructors

Link copied to clipboard
fun Attribute()

Functions

Link copied to clipboard
operator override fun getValue(thisRef: Node, property: KProperty<*>): T
Link copied to clipboard
abstract operator fun invoke(p1: Node): T