summaryrefslogtreecommitdiffstats
path: root/native/src/widget/slider.rs (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Implement event capturing for `Slider`Libravatar Héctor Ramón Jiménez2020-11-121-0/+6
|
* Make `Widget::on_event` return an `event::Status`Libravatar Héctor Ramón Jiménez2020-11-121-3/+7
|
* Introduce `viewport` to `Widget::draw`Libravatar Héctor Ramón Jiménez2020-10-281-0/+1
| | | | | This should eventually allow us to only generate primitives that are visible.
* Require `Clone` for `Message` early when neededLibravatar Héctor Ramón Jiménez2020-10-171-2/+4
| | | | | | | | | | | | | | | | | | | Prior to this change, the widgets that needed a `Clone` bound on `Message` to implement the `Widget` trait could be created with a non-cloneable `Message`. As a consequence, the compiler complained only when actually trying to use the `Widget` trait. Normally, this happens when trying to `push` the widget in a container or turn it into an `Element`. Furthermore, the compiler error in this case does not mention `Message` nor the `Clone` bound, but instead complains about a missing `From` implementation. Thus, it can easily cause confusion! This change introduces `Clone` bounds in the main implementation of the widgets that need it to properly implement the `Widget` trait. As a result, the compiler complains early when trying to create one of these widgets with a non-cloneable `Message` and explicitly mentions that the `Message` needs to implement `Clone`.
* Add `height` method to `Slider`Libravatar Héctor Ramón Jiménez2020-08-011-6/+15
|
* Mention generic range in `Slider` documentationLibravatar Héctor Ramón Jiménez2020-06-131-1/+2
|
* Remove unnecessary type annotations in `Slider`Libravatar Héctor Ramón Jiménez2020-06-131-3/+3
|
* Make `Slider` value type genericLibravatar Héctor Ramón Jiménez2020-06-131-25/+53
|
* Add `step` member to slider widgetsLibravatar Sebastian Zivota2020-06-111-4/+16
| | | | | | Both the native and the web slider now have a member `step` to control the least possible change of the slider's value. It defaults to 1.0 for all sliders and can be adjusted with the step method.
* Add on_release message to Slider (#378)Libravatar Duncan Freeman2020-06-081-2/+23
| | | | | | | | | | | * Add on_finish callback to Slider * Fix formatting * Rename Slider's on_finish to on_release, make the message simply an event without data * Satisfy Clone impl requirement on Message in integration test * Only call on_release after dragging a slider
* Remove inconsistent `input` module in `iced_native`Libravatar Héctor Ramón Jiménez2020-04-301-2/+2
|
* Split `Input` mouse event by `ButtonState`Libravatar Héctor Ramón Jiménez2020-04-301-14/+11
|
* #288 Renamed XXXWidget to MarkerLibravatar Olivier Pinon2020-04-121-2/+2
|
* Remove unnecessary 'static lifetime on RendererLibravatar Olivier Pinon2020-04-121-3/+4
|
* Hash type ids in `Widget::hash_layout` implsLibravatar Héctor Ramón Jiménez2020-03-301-2/+4
|
* refactor: remove not mandatory static lifetimeLibravatar Théo Gaillard2020-03-301-2/+2
|
* Write missing docs and reenable deny statementsLibravatar Héctor Ramón Jiménez2020-01-091-0/+1
|
* Implement styling for `Slider`Libravatar Héctor Ramón Jiménez2020-01-071-7/+25
|
* Add `Renderer::Defaults` and style inheritanceLibravatar Héctor Ramón Jiménez2019-12-301-0/+1
|
* Allow clipboard access in `Widget::on_event`Libravatar Héctor Ramón Jiménez2019-12-181-2/+3
|
* Fix `Button` example in `iced_native`Libravatar Héctor Ramón Jiménez2019-11-221-1/+0
|
* Uncomment missing debug implementations ruleLibravatar Héctor Ramón Jiménez2019-11-221-0/+1
|
* Write docs for `iced` and `iced_native`Libravatar Héctor Ramón Jiménez2019-11-221-0/+25
|
* Merge branch 'master' into improvement/docsLibravatar Héctor Ramón Jiménez2019-11-211-0/+4
|\
| * Make `width` and `height` required methodsLibravatar Héctor Ramón Jiménez2019-11-161-0/+4
| |
* | Move widgets from `core` to `native` and `web`Libravatar Héctor Ramón Jiménez2019-11-211-18/+91
|/ | | | Also made fields private and improved `Renderer` traits.
* Draft custom layout engine based on `druid`Libravatar Héctor Ramón Jiménez2019-11-111-6/+14
|
* Draft new layout APILibravatar Héctor Ramón Jiménez2019-11-101-7/+11
|
* Provide `Renderer` to `Widget::on_event`Libravatar Héctor Ramón Jiménez2019-10-291-0/+1
| | | | | This allows us to implement configurable event processing that adapts to different rendering strategies.
* Rename `Renderer::Primitive` to `Renderer::Output`Libravatar Héctor Ramón Jiménez2019-10-111-2/+2
|
* Make `iced_core::Button` customizableLibravatar Héctor Ramón Jiménez2019-10-081-1/+1
| | | | | | | Now it supports: - Any kind of content - Custom border radius - Custom background
* Move `MouseCursor` to `iced_wgpu`Libravatar Héctor Ramón Jiménez2019-10-051-1/+1
|
* Add `Renderer` and `Primitive` conceptsLibravatar Héctor Ramón Jiménez2019-10-051-3/+3
|
* Create `iced_core` and `iced_native`Libravatar Héctor Ramón Jiménez2019-09-201-0/+126