WARNING: Cushy is in early alpha. This guide doubly so.

Slider

The Slider widget allows selecting one or two values between a minimum and a maximum. This is implemented using the trait SliderValue, which is automatically implemented for types that implement Ranged and PercentBetween. This includes all numeric types in Rust.

The Slider widget can set either a single value or a tuple of 2 elements. When a two element tuple is used, the slider highlights the area between the two selected values.