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
Sebastian Imlay
e19a07d400
Added initial touch events to support iOS
2020-03-18 11:26:53 -07:00
Héctor Ramón Jiménez
7b278755fc
Write missing docs and reenable deny statements
2020-01-09 18:31:07 +01:00
Héctor Ramón Jiménez
b329003c8f
Implement styling for Slider
2020-01-07 00:28:08 +01:00
Héctor Ramón Jiménez
8caa66be27
Add Renderer::Defaults and style inheritance
2019-12-30 12:14:26 +01:00
Héctor Ramón Jiménez
a14b39555e
Allow clipboard access in Widget::on_event
2019-12-18 07:45:49 +01:00
Héctor Ramón Jiménez
048909b45d
Fix Button example in iced_native
2019-11-22 22:13:54 +01:00
Héctor Ramón Jiménez
d136b7ce64
Uncomment missing debug implementations rule
2019-11-22 21:16:40 +01:00
Héctor Ramón Jiménez
a7dba612f0
Write docs for iced and iced_native
2019-11-22 19:36:57 +01:00
Héctor Ramón Jiménez
428509c84a
Merge branch 'master' into improvement/docs
2019-11-21 13:53:02 +01:00
Héctor Ramón Jiménez
65eb218d3d
Move widgets from core to native and web
...
Also made fields private and improved `Renderer` traits.
2019-11-21 13:47:20 +01:00
Héctor Ramón Jiménez
6cdf69e76b
Make width and height required methods
2019-11-16 22:08:49 +01:00
Héctor Ramón Jiménez
0240c3981b
Draft custom layout engine based on druid
2019-11-11 03:08:00 +01:00
Héctor Ramón Jiménez
2303111e09
Draft new layout API
2019-11-10 01:55:32 +01:00
Héctor Ramón Jiménez
9dabbf7885
Provide Renderer to Widget::on_event
...
This allows us to implement configurable event processing that adapts to
different rendering strategies.
2019-10-29 03:34:21 +01:00
Héctor Ramón Jiménez
8846a239cf
Rename Renderer::Primitive to Renderer::Output
2019-10-11 22:15:39 +02:00
Héctor Ramón Jiménez
10e10e5e06
Make iced_core::Button customizable
...
Now it supports:
- Any kind of content
- Custom border radius
- Custom background
2019-10-08 03:13:41 +02:00