NodeList

class NodeList

Author

Colton Daily

Constructors

Link copied to clipboard
fun NodeList()

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
fun contains(node: Node): Boolean
Link copied to clipboard
inline fun <T : Node> filterIsInstance(): List<T>
Link copied to clipboard
inline fun <T : Node> findFirstNodeOfType(): T?
fun <T : Node> findFirstNodeOfType(type: KClass<T>): T?
Link copied to clipboard
fun findNode(name: String): Node?
Link copied to clipboard
inline fun forEach(action: (Node) -> Unit)

Iterate through the nodes in normal sorted order. To iterate the sorted list see forEachSorted.

Link copied to clipboard
inline fun forEachIndexed(action: (index: Int, node: Node) -> Unit)
Link copied to clipboard
inline fun forEachReversed(action: (Node) -> Unit)
Link copied to clipboard
inline fun forEachSorted(action: (Node) -> Unit)

Iterate through the sorted list. Mainly used for custom render sorting while keep the original update order. See NodeList.sort.

Link copied to clipboard
operator fun get(idx: Int): Node
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
inline fun <T : Node> nodesOfType(): List<T>
Link copied to clipboard
open override fun toString(): String

Properties

Link copied to clipboard
val size: Int
Link copied to clipboard
var sort: Comparator<Node>? = null

Allow custom sorting when updating internal node lists.