SliderState
class SliderState(initialValue: Double, val range: ClosedFloatingPointRange<Double> = 0.0..1.0, val steps: Int = 0)(source)
Caller-owned owner-thread numeric state for one Slider.
Values are finite, clamped to SliderState.range, and quantized to SliderState.steps evenly spaced interior stops when steps are requested. Distinct normalized writes synchronously invalidate attached retained observers.
Parameters
initialValue
initial value normalized into SliderState.range.
Constructors
Link copied to clipboard
constructor(initialValue: Double, range: ClosedFloatingPointRange<Double> = 0.0..1.0, steps: Int = 0)
Properties
Link copied to clipboard
Current zero-to-one fraction within SliderState.range.
Link copied to clipboard
finite increasing inclusive range.