Package-level declarations

CSProperty<T> — observable values with onChange, computed, two-way connect, pausable updates and Kotlin delegate helpers.

Types

Link copied to clipboard
Link copied to clipboard
class CSAtomicProperty<T>(parent: CSHasDestruct? = null, value: T, onChange: (value: T) -> Unit? = null) : CSPropertyBase<T>
Link copied to clipboard
class CSLateProperty<T>(onApply: (value: T) -> Unit? = null) : CSPropertyBase<T>
Link copied to clipboard
class CSLateReadOnlyProperty<T>(parent: CSHasDestruct, create: () -> CSValue<T>) : ReadOnlyProperty<Any?, T>
Link copied to clipboard
class CSLazyReadOnlyProperty<T>(create: () -> CSValue<T>) : ReadOnlyProperty<Any?, T>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
abstract class CSPropertyBase<T>(val parent: CSHasDestruct? = null, val onChange: (value: T) -> Unit? = null) : CSModel, CSProperty<T>
Link copied to clipboard
class CSPropertyImpl<T>(value: T, onApply: (value: T) -> Unit? = null) : CSPropertyBase<T>
Link copied to clipboard
abstract class CSPropertyWrapper<T>(parent: CSHasDestruct? = null) : CSModel, CSProperty<T>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
class CSSafePropertyImpl<T>(parent: CSHasDestruct, value: T, onChangeUnsafe: (value: T) -> Unit? = null) : CSPropertyBase<T> , CSSafeProperty<T>
Link copied to clipboard
class CSSafeVariableImpl<T>(value: T, onChangeUnsafe: ArgFun<T>? = null) : CSSafeVariable<T>
Link copied to clipboard
class CSSafeWeakProperty<T>(parent: CSHasDestruct, value: T? = null, onChangeUnsafe: (value: T?) -> Unit? = null) : CSPropertyBase<T?> , CSSafeProperty<T?>
Link copied to clipboard
abstract class CSSuspendPropertyBase<T>(val parent: CSHasDestruct? = null, val onChange: suspend (value: T) -> Unit = {}) : CSModel, CSSuspendProperty<T>
Link copied to clipboard
class CSSuspendPropertyImpl<T>(value: T, onApply: suspend (value: T) -> Unit = { }) : CSSuspendPropertyBase<T>
Link copied to clipboard
abstract class CSSuspendPropertyWrapper<T>(parent: CSHasDestruct? = null) : CSModel, CSSuspendProperty<T>
Link copied to clipboard
class CSWeakProperty<T>(value: T? = null, onChange: (value: T?) -> Unit? = null) : CSPropertyBase<T?>

Functions

Link copied to clipboard
fun <T> CSProperty<List<T>>.add(item: T)
Link copied to clipboard
inline fun <T, V> CSHasChangeValue<T>.computed(parent: CSHasRegistrations? = null, crossinline child: (T) -> CSProperty<V>, noinline onChange: ArgFun<V>? = null): CSProperty<V>
inline fun <T, V> CSProperty<T>.computed(parent: CSHasRegistrations? = null, crossinline from: (T) -> V, crossinline to: (V) -> T, noinline onChange: ArgFun<V>? = null): CSProperty<V>
inline fun <T, V> CSProperty<T>.computed(parent: CSHasRegistrations? = null, crossinline get: (T) -> V, crossinline set: (CSProperty<T>, V) -> Unit, noinline onChange: ArgFun<V>? = null): CSProperty<V>
Link copied to clipboard
Link copied to clipboard
inline fun <T> CSProperty<T>.computedFrom(parent: CSHasRegistrations? = null, crossinline from: (T) -> T, noinline onChange: ArgFun<T>? = null): CSProperty<T>
Link copied to clipboard
inline fun <T> CSProperty<T>.computedTo(parent: CSHasRegistrations? = null, crossinline to: (T) -> T, noinline onChange: ArgFun<T>? = null): CSProperty<T>
Link copied to clipboard
Link copied to clipboard
fun <T : CSProperty<*>> T.fire(): T
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun <T : CSProperty<*>> T.paused(fire: Boolean = true, function: T.() -> Unit): T
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun <T> CSProperty<List<T>>.remove(item: T)
Link copied to clipboard
operator fun <T> CSProperty<List<T>>.set(index: Int, newValue: T)
Link copied to clipboard
fun <Item : CSHasDestruct> CSValue<Int>.update(list: MutableList<Item>, function: (index: Int) -> Item)
fun CSValue<Int>.update(newCount: Int, onAdd: ArgFun<Int>? = null, onRemove: ArgFun<Int>? = null)