cushy 0.4.0

A wgpu-powered graphical user interface (GUI) library with a reactive data model
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# Slider

The [`Slider`][Slider] widget allows selecting one or two values between a
minimum and a maximum. This is implemented using the trait
[`SliderValue`][SliderValue], which is automatically implemented for types that
implement [`Ranged`][Ranged] and [`PercentBetween`][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.

[Slider]: <{{ docs }}/widgets/slider/struct.Slider.html>
[SliderValue]: <{{ docs }}/widgets/slider/trait.SliderValue.html>
[PercentBetween]: <{{ docs }}/animation/trait.PercentBetween.html>
[Ranged]: <https://docs.rs/figures/latest/figures/trait.Ranged.html>