Range

data class Range(    val lower: Int = 0,     val upper: Int = 100,     val step: Int = 1)

This data class models the range of the value a slider can handle.

Parameters

lower

the lower bound of the value; can be negative.

upper

the upper bound of the value; can be negative. But must be greater than lower.

step

defines an optional step size. Must be positive and lower than the difference of upper and lower

Constructors

Link copied to clipboard
fun Range(    lower: Int = 0,     upper: Int = 100,     step: Int = 1)

Functions

Link copied to clipboard
fun absolute(value: Int): Int
Link copied to clipboard
fun ranged(value: Int): Int

Properties

Link copied to clipboard
val distance: Int
Link copied to clipboard
val lower: Int = 0
Link copied to clipboard
val step: Int = 1
Link copied to clipboard
val upper: Int = 100