iced/examples/slider
Jonatan Pettersson 5e2b3d4a51
Enhance Slider and VerticalSlider functionality
* Add optional default behavior
  * Add a `default` field
  * Add a `default()` method to set the `default` field
  * A double-click, ctrl-click or command-click will set the slider to the default value
* Add optional fine-grained control
  * Add an optional `step_fine` field
  * Add a `step_fine()` method to set the `step_fine` field
  * Use `step_fine` in place of `step` while shift is pressed
* Add increment/decrement via up/down keys
* Update `Slider` and `VerticalSlider` examples
2024-01-31 21:25:19 +01:00
..
src Enhance Slider and VerticalSlider functionality 2024-01-31 21:25:19 +01:00
Cargo.toml Use workspace dependencies and package inheritance 2023-09-04 13:08:17 +02:00
README.md updated README for slider example 2022-12-13 10:13:27 +01:00
sliders.gif Vertical orientation added to Slider. 2022-12-12 15:27:00 +01:00

Slider

A Slider is a bar and a handle that selects a single value from a range of values. There exists both Slider and VerticalSlider depending on which orientation you need.

You can run it with cargo run:

cargo run --package slider