slider

fun slider(range: ClosedRange<Int>, orientation: Orientation = Horizontal, config: SliderConfig<Int>.() -> Unit = {}): FieldVisualizer<Int>(source)
@JvmName(name = "sliderFloat")
fun slider(range: ClosedRange<Float>, orientation: Orientation = Horizontal, config: SliderConfig<Float>.() -> Unit = {}): FieldVisualizer<Float>(source)
@JvmName(name = "sliderDouble")
fun slider(range: ClosedRange<Double>, orientation: Orientation = Horizontal, config: SliderConfig<Double>.() -> Unit = {}): FieldVisualizer<Double>(source)
@JvmName(name = "sliderLong")
fun slider(range: ClosedRange<Long>, orientation: Orientation = Horizontal, config: SliderConfig<Long>.() -> Unit = {}): FieldVisualizer<Long>(source)
@JvmName(name = "sliderShort")
fun slider(range: ClosedRange<Short>, orientation: Orientation = Horizontal, config: SliderConfig<Short>.() -> Unit = {}): FieldVisualizer<Short>(source)
@JvmName(name = "sliderByte")
fun slider(range: ClosedRange<Byte>, orientation: Orientation = Horizontal, config: SliderConfig<Byte>.() -> Unit = {}): FieldVisualizer<Byte>(source)
@JvmName(name = "sliderChar")
fun slider(range: ClosedRange<Char>, orientation: Orientation = Horizontal, config: SliderConfig<Char>.() -> Unit = {}): FieldVisualizer<Char>(source)
@JvmName(name = "sliderMeasure")
fun <T : Units> slider(range: ClosedRange<Measure<T>>, orientation: Orientation = Horizontal, config: SliderConfig<Measure<T>>.() -> Unit = {}): FieldVisualizer<Measure<T>>(source)

Creates a Slider control that is bound to a Field. This control lets the user select a value within a range.

Parameters

range

for the Slider

orientation

of the Slider

config

for the Slider


fun slider(model: ConfinedValueModel<Int>, orientation: Orientation = Horizontal, config: SliderConfig<Int>.() -> Unit = {}): FieldVisualizer<Int>(source)
@JvmName(name = "sliderFloat")
fun slider(model: ConfinedValueModel<Float>, orientation: Orientation = Horizontal, config: SliderConfig<Float>.() -> Unit = {}): FieldVisualizer<Float>(source)
@JvmName(name = "sliderDouble")
fun slider(model: ConfinedValueModel<Double>, orientation: Orientation = Horizontal, config: SliderConfig<Double>.() -> Unit = {}): FieldVisualizer<Double>(source)
@JvmName(name = "sliderLong")
fun slider(model: ConfinedValueModel<Long>, orientation: Orientation = Horizontal, config: SliderConfig<Long>.() -> Unit = {}): FieldVisualizer<Long>(source)
@JvmName(name = "sliderShort")
fun slider(model: ConfinedValueModel<Short>, orientation: Orientation = Horizontal, config: SliderConfig<Short>.() -> Unit = {}): FieldVisualizer<Short>(source)
@JvmName(name = "sliderByte")
fun slider(model: ConfinedValueModel<Byte>, orientation: Orientation = Horizontal, config: SliderConfig<Byte>.() -> Unit = {}): FieldVisualizer<Byte>(source)
@JvmName(name = "sliderChar")
fun slider(model: ConfinedValueModel<Char>, orientation: Orientation = Horizontal, config: SliderConfig<Char>.() -> Unit = {}): FieldVisualizer<Char>(source)
@JvmName(name = "sliderMeasure")
fun <T : Units> slider(model: ConfinedValueModel<Measure<T>>, orientation: Orientation = Horizontal, config: SliderConfig<Measure<T>>.() -> Unit = {}): FieldVisualizer<Measure<T>>(source)

Creates a Slider control that is bound to a Field. This control lets the user select a value within a range.

Parameters

model

for the Slider

orientation

of the Slider

config

for the Slider


fun <T : Comparable<T>> slider(range: ClosedRange<T>, orientation: Orientation = Horizontal, interpolator: Interpolator<T>, config: SliderConfig<T>.() -> Unit = {}): FieldVisualizer<T>(source)
fun <T : Comparable<T>> slider(model: ConfinedValueModel<T>, orientation: Orientation = Horizontal, interpolator: Interpolator<T>, config: SliderConfig<T>.() -> Unit = {}): FieldVisualizer<T>(source)


inline fun <T : Number, Comparable<T>> slider(model: ConfinedValueModel<T>, orientation: Orientation = Horizontal, noinline config: SliderConfig<T>.() -> Unit = {}, type: KClass<T>): FieldVisualizer<T>(source)

Deprecated

Use version without type.

See also