openrndr / org.openrndr.events / Event

Event

class Event<T> (source)

Types

Filter

interface Filter<T1>

Map

interface Map<T1, R1>

Constructors

<init>

Event()
Event(name: String)

Properties

listeners

val listeners: MutableList<(T) -> Unit>

Functions

cancel

fun cancel(listener: (T) -> Unit): Unit

deliver

fun deliver(): Unit

filter

fun filter(filter: (T) -> Boolean): Event<T>

internalTrigger

fun internalTrigger(): Unit

listen

fun listen(listener: (T) -> Unit): (T) -> Unit
fun listen(listener: Event<T>): (T) -> Unit

listenOnce

fun listenOnce(listener: (T) -> Unit): Unit
fun listenOnce(listener: Event<T>): Unit

name

fun name(name: String): Event<T>
fun name(): String

postpone

fun postpone(postpone: Boolean): Event<T>

signature

fun signature(): Array<Class<*>>
fun signature(t1: Class<T>): Event<T>

sinceLastTrigger

fun sinceLastTrigger(): Duration

trigger

fun trigger(v1: T): Event<T>

triggerCount

fun triggerCount(): Long