summaryrefslogtreecommitdiffstats
path: root/examples/slider/src/main.rs (unfollow)
Commit message (Collapse)AuthorFilesLines
2024-07-12Re-export variants of `Length` and `alignment` typesLibravatar Héctor Ramón Jiménez1-3/+3
2024-07-12Introduce helper methods for alignment for all widgetsLibravatar Héctor Ramón Jiménez1-2/+2
2024-07-11Add `iced` widget helper to display the iced logo :comet:Libravatar Héctor Ramón Jiménez1-28/+15
2024-05-13Ask for explicit `Length` in `center_*` methodsLibravatar Héctor Ramón Jiménez1-4/+4
2024-05-03Introduce `center` widget helperLibravatar Héctor Ramón Jiménez1-10/+6
... and also make `center_x` and `center_y` set `width` and `height` to `Length::Fill`, respectively. This targets the most common use case when centering things and removes a bunch of boilerplate as a result.
2024-03-16Introduce `Program` APILibravatar Héctor Ramón Jiménez1-10/+10
2024-01-31Simplify `slider` exampleLibravatar Héctor Ramón Jiménez1-23/+18
2024-01-31Enhance `Slider` and `VerticalSlider` functionalityLibravatar Jonatan Pettersson1-7/+26
* 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
2023-02-17Use `f32` in `Length::Units` and rename it to `Fixed`Libravatar Héctor Ramón Jiménez1-2/+2
2022-12-13Split vertical orientation into VerticalSliderLibravatar Casper Storm1-13/+7
2022-12-12Vertical orientation added to Slider.Libravatar Casper Storm1-0/+69