Package-level declarations

Types

Link copied to clipboard
open class CircularRangeSlider<T : Comparable<T>>(model: ConfinedRangeModel<T>, interpolator: Interpolator<T>, function: InvertibleFunction = LinearFunction) : RangeValueSlider<T>

Represents a range selection slider that is circular.

Link copied to clipboard
open class CircularSlider<T : Comparable<T>>(model: ConfinedValueModel<T>, interpolator: Interpolator<T>, function: InvertibleFunction = LinearFunction) : ValueSlider<T>

Represents a selection slider that is circular.

Link copied to clipboard

A function f(x) that also has a valid f-1(x). The domain and range of this function must be 0-1.

Link copied to clipboard
Link copied to clipboard
interface Marker<T : Comparable<T>>

Determines where marks are placed on a ValueSlider. These marks are used to indicate specific values or provide snapping behavior.

Link copied to clipboard
open class RangeSlider<T : Comparable<T>>(model: ConfinedRangeModel<T>, val orientation: Orientation = Horizontal, function: InvertibleFunction = LinearFunction, interpolator: Interpolator<T>) : RangeValueSlider<T>

Represents a range selection slider that can be Horizontal or Vertical.

Link copied to clipboard
abstract class RangeValueSlider<T : Comparable<T>> : View

Base class for controls that represent range sliders. These controls have a value range that is bound between a range defined by model. ValueSliders can be conceptualized as mapping between two domains as follows:

Link copied to clipboard
open class Slider<T : Comparable<T>>(model: ConfinedValueModel<T>, val orientation: Orientation = Horizontal, function: InvertibleFunction = LinearFunction, interpolator: Interpolator<T>) : ValueSlider<T>

Represents a selection slider that can be Horizontal or Vertical.

Link copied to clipboard
interface SnappingPolicy<T>

Determines the snapping behavior for a ValueSlider.

Link copied to clipboard
abstract class ValueSlider<T : Comparable<T>> : View

Base class for controls that represent sliders. These controls have a single value that is bound between a range defined by model. ValueSliders can be conceptualized as mapping between two domains as follows:

Inherited properties

Link copied to clipboard

The sequence of marks for a RangeValueSlider or emptySequence() if it has none.

The sequence of marks for a ValueSlider or emptySequence() if it has none.

Functions

Link copied to clipboard
Link copied to clipboard
fun <T : Comparable<T>> evenMarker(intermediateMarks: Int): Marker<T>

Returns a Marker that will create evenly spaced marks that start at 0 and end at 1.

Link copied to clipboard
fun <T> snap(block: (value: T, from: T) -> Boolean): SnappingPolicy<T>

Creates a SnappingPolicy from the given lambda.

Link copied to clipboard
fun <T : Number> snapWithin(distance: T): SnappingPolicy<T>

Inherited functions

Link copied to clipboard
fun <T : Comparable<T>> RangeValueSlider<T>.mark(vararg using: T)

Sets the RangeValueSlider's marker based on the given values.

Sets the RangeValueSlider's marker based on the given Iterable.

fun <T : Comparable<T>> ValueSlider<T>.mark(vararg using: T)

Sets the ValueSlider's marker based on the given values.

fun <T : Comparable<T>> ValueSlider<T>.mark(using: Iterable<T>)

Sets the ValueSlider's marker based on the given Iterable.