Package-level declarations
Types
Link copied to clipboard
class PropertyWatcherDelegate<V, R>(property: KProperty0<V>, valueChangedEvent: Event<R>? = null, cleaner: (R) -> Unit? = null, val function: (V) -> R)
Property watcher delegate
Link copied to clipboard
class PropertyWatcherDelegate2<V0, V1, R>(toWatch0: KProperty0<V0>, toWatch1: KProperty0<V1>, valueChangedEvent: Event<R>? = null, cleaner: (R) -> Unit? = null, function: (V0, V1) -> R)
Property watcher delegate
Link copied to clipboard
class PropertyWatcherDelegate3<V0, V1, V2, R>(toWatch0: KProperty0<V0>, toWatch1: KProperty0<V1>, toWatch2: KProperty0<V2>, valueChangedEvent: Event<R>? = null, cleaner: (R) -> Unit? = null, function: (V0, V1, V2) -> R)
Property watcher delegate
Functions
Link copied to clipboard
fun watchingImagePath(pathProperty: KProperty0<String>, imageChangedEvent: Event<ColorBuffer>? = null, imageTransform: (ColorBuffer) -> ColorBuffer = { it }): PropertyWatcherDelegate<String, ColorBuffer>
Delegate property value by watching a path property
Link copied to clipboard
fun <V0, V1, R> watchingProperties(property0: KProperty0<V0>, property1: KProperty0<V1>, valueChangedEvent: Event<R>? = null, cleaner: (R) -> Unit?, function: (value0: V0, value1: V1) -> R): PropertyWatcherDelegate2<V0, V1, R>
Delegate property value to a function for which the values of 2 properties are watched
fun <V0, V1, V2, R> watchingProperties(property0: KProperty0<V0>, property1: KProperty0<V1>, property2: KProperty0<V2>, valueChangedEvent: Event<R>? = null, cleaner: (R) -> Unit? = null, function: (value0: V0, value1: V1, value2: V2) -> R): PropertyWatcherDelegate3<V0, V1, V2, R>
Delegate property value to a function for which the values of 3 properties are watched
Link copied to clipboard
fun <V, R> watchingProperty(property: KProperty0<V>, valueChangedEvent: Event<R>? = null, cleaner: (R) -> Unit? = null, function: (value: V) -> R): PropertyWatcherDelegate<V, R>
Delegate property value to a function for which the value of a single property is watched