Package-level declarations

Preset-aware property types (value and nullable variants) that persist into the selected preset item.

Types

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
abstract class CSPresetPropertyBase<T>(parent: CSHasDestruct, val preset: CSPreset<*, *>, val key: String, onChange: (value: T) -> Unit? = null) : CSPropertyBase<T> , CSPresetProperty<T>

Functions

Link copied to clipboard
@JvmName(name = "coerceFloat")
fun <T : CSProperty<Float>> T.coerce(range: ClosedRange<Float>): CSProperty<Float>
fun <T : CSProperty<Int>> T.coerce(min: Int, max: Int): CSProperty<Int>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun <T : CSProperty<Float?>> T.max(value: Float?): CSProperty<Float?>
fun <T : CSProperty<Int>> T.max(value: Int): CSProperty<Int>
Link copied to clipboard
fun <T : CSProperty<Float?>> T.min(value: Float?): CSProperty<Float?>
fun <T : CSProperty<Int>> T.min(value: Int): CSProperty<Int>
Link copied to clipboard
fun <T> CSPresetProperty<T>.valueIn(store: CSStore): T?

The value store holds for this property, or its default when store holds none.