Héctor Ramón Jiménez
4029a1cdaa
Merge branch 'master' into non-uniform-border-radius-for-quads
2022-12-02 18:53:21 +01:00
Héctor Ramón Jiménez
925b78a75d
Fix redundant references in slider
2022-11-09 04:23:55 +01:00
Héctor Ramón Jiménez
18fb74f200
Introduce Custom variants for every style in the built-in Theme
2022-11-09 04:05:31 +01:00
Robert Krahn
c0596179bd
non uniform border radius for quads
2022-11-03 22:48:26 +01:00
Héctor Ramón Jiménez
ff2519b1d4
Replace stateful widgets with new iced_pure API
2022-07-27 06:49:20 +02:00
Héctor Ramón Jiménez
2f76a10a1d
Fix further clippy lints
...
... and explicitly annotate crates as well.
2022-07-09 18:03:59 +02:00
Poly
15f794b7a8
Address Clippy lints
2022-07-09 17:07:38 +02:00
Héctor Ramón Jiménez
d5bc610d01
Fix examples and doc-tests
2022-05-26 23:12:11 +02:00
Héctor Ramón Jiménez
cf0230072c
Rename Variant to Style and Style to Appearance
2022-05-26 23:07:34 +02:00
Héctor Ramón Jiménez
3a820b45f3
Implement theme styling for Slider
2022-05-26 00:40:27 +02:00
Héctor Ramón Jiménez
664251f3f5
Draft first-class Theme support
...
RFC: https://github.com/iced-rs/rfcs/pull/6
2022-05-14 01:56:32 +02:00
MG_REX
c0e10f2e9d
Fix slider's handle position calculation
2022-03-29 18:49:08 +07:00
Héctor Ramón Jiménez
c35496d80f
Merge branch 'master' into virtual-widgets
2022-03-07 15:29:43 +07:00
Héctor Ramón Jiménez
1313c94e3b
Remove hash_layout method from Widget trait
2022-02-23 21:31:54 +07:00
Héctor Ramón Jiménez
3f1a45ca47
Implement Slider in iced_pure
2022-02-13 17:20:10 +07:00
Héctor Ramón Jiménez
810e086728
Introduce Renderer argument to mouse_interaction and on_event
2022-01-11 14:12:28 +07:00
Héctor Ramón Jiménez
bbd9355450
Introduce Shell type in iced_native
...
Widgets now can invalidate the current layout of the application on demand.
2021-11-29 16:22:01 +07:00
Héctor Ramón Jiménez
1ce02e8c7a
Derive Eq for slider::State again
2021-11-15 15:33:02 +07:00
Héctor Ramón Jiménez
94d62bca9a
Use value in Slider to store the previous value
2021-11-15 15:30:53 +07:00
Cory Forsstrom
9a254a211b
Don't rebroadcast redundant slider messages
2021-11-11 10:32:37 -08:00
Héctor Ramón Jiménez
023aded277
Rename fill_rectangle to fill_quad in Renderer
2021-11-04 19:24:11 +07:00
Héctor Ramón Jiménez
631e95ee0b
Move viewport argument to last position in mouse_interaction methods
...
This keeps the order of the arguments consistent with `draw`.
2021-11-02 15:03:29 +07:00
Héctor Ramón Jiménez
0c76e0307f
Reintroduce Box for style_sheet in Slider
2021-10-31 17:42:43 +07:00
Héctor Ramón Jiménez
0aafcde0ef
Remove widget module re-exports in iced_native
2021-10-31 16:14:34 +07:00
Héctor Ramón Jiménez
954d6349a8
Implement Widget::mouse_interaction for Slider
2021-10-20 16:28:27 +07:00
Héctor Ramón Jiménez
c800fd07c3
Implement Widget::draw for Slider
2021-10-20 16:28:12 +07:00
Héctor Ramón Jiménez
11bcb13427
Wire up styling to Slider in iced_native
2021-10-20 15:50:42 +07:00
Héctor Ramón Jiménez
edea093350
Move Defaults from iced_graphics to iced_native
2021-10-18 15:19:04 +07:00
Héctor Ramón Jiménez
03b3493138
Remove trait-specific draw logic in iced_native
2021-10-14 16:07:22 +07:00
Héctor Ramón Jiménez
21971e0037
Make Clipboard argument in Widget trait mutable
2021-03-10 01:59:02 +01:00
Héctor Ramón Jiménez
3bdf931925
Turn Touch into a touch::Event enum
2020-12-15 06:38:46 +01:00
Héctor Ramón Jiménez
09110a93b0
Merge branch 'ios-support-wip' into feature/touch-support
2020-12-15 06:13:19 +01:00
Héctor Ramón Jiménez
01322f69a4
Use recently stabilized intra-doc links
...
See RFC: https://github.com/rust-lang/rfcs/blob/master/text/1946-intra-rustdoc-links.md
2020-11-26 02:05:43 +01:00
Héctor Ramón Jiménez
c361fe48c7
Implement event capturing for Slider
2020-11-12 00:56:50 +01:00
Héctor Ramón Jiménez
3f968b8c87
Make Widget::on_event return an event::Status
2020-11-12 00:09:52 +01:00
Héctor Ramón Jiménez
d328b07b39
Introduce viewport to Widget::draw
...
This should eventually allow us to only generate primitives that are
visible.
2020-10-28 06:21:07 +01:00
Héctor Ramón Jiménez
d7a5e54455
Require Clone for Message early when needed
...
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`.
2020-10-17 08:10:30 +02:00
Héctor Ramón Jiménez
9ba4cfd23f
Add height method to Slider
2020-08-01 08:18:52 +02:00
Héctor Ramón Jiménez
7bc7b60321
Mention generic range in Slider documentation
2020-06-13 14:36:10 +02:00
Héctor Ramón Jiménez
c71d83fe0e
Remove unnecessary type annotations in Slider
2020-06-13 14:34:23 +02:00
Héctor Ramón Jiménez
0b819de3e2
Make Slider value type generic
2020-06-13 14:17:41 +02:00
Sebastian Zivota
c3643eaf6d
Add step member to slider widgets
...
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.
2020-06-11 00:18:24 +02:00
Duncan Freeman
4960a8827e
Add on_release message to Slider ( #378 )
...
* 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
2020-06-08 11:07:45 +02:00
Héctor Ramón Jiménez
bb9ccc4f62
Remove inconsistent input module in iced_native
2020-04-30 05:04:45 +02:00
Héctor Ramón Jiménez
e55cd9652e
Split Input mouse event by ButtonState
2020-04-30 04:53:15 +02:00
Olivier Pinon
41f6a325e9
#288 Renamed XXXWidget to Marker
2020-04-12 01:20:40 +02:00
Olivier Pinon
f7d7ab1ba9
Remove unnecessary 'static lifetime on Renderer
2020-04-12 00:57:44 +02:00
Héctor Ramón Jiménez
d07304fb85
Hash type ids in Widget::hash_layout impls
2020-03-30 17:28:55 +02:00
Théo Gaillard
0539cd1b85
refactor: remove not mandatory static lifetime
2020-03-30 06:39:10 +08:00
Héctor Ramón Jiménez
d3572e1b81
Turn Touch into a struct and add finger id
2020-03-19 12:17:16 +01:00