Commit graph

158 commits

Author SHA1 Message Date
Héctor Ramón Jiménez
375386faa9
Remove pure leftovers in iced_graphics 2022-07-27 07:21:15 +02: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
f7059a1c9a
Remove unnecessary let bindings in canvas::Frame 2022-07-11 15:59:38 +02:00
Héctor Ramón Jiménez
fe34b7a339
Update lyon to 1.0 🎉
Congrats and thanks to @nical!
2022-07-11 15:53:33 +02:00
ThatsNoMoon
53d93a37dd
fix another discrepancy with HTML5 arcTo
HTML5's arcTo does not draw a line from the end of the arc to `b`, so
this should not either.
2022-07-10 15:12:11 +02:00
ThatsNoMoon
20b58e0214
fix arc_to
Fixed `path::Builder::arc_to` to behave the same as [HTML5's `arcTo`]
( https://html.spec.whatwg.org/multipage/canvas.html#dom-context-2d-arcto ).
2022-07-10 15:12:01 +02:00
Héctor Ramón
9051dd6977
Merge pull request #1379 from PolyMeilex/fix/clippy
Address Clippy lints
2022-07-09 19:03:40 +02:00
Héctor Ramón Jiménez
2065a40f64
Fix clippy lints for all crates and features
... and check those in CI as well!
2022-07-09 18:43:05 +02:00
Héctor Ramón Jiménez
33a24b5821
Run cargo fmt 2022-07-09 17:07:40 +02:00
Poly
15f794b7a8
Address Clippy lints 2022-07-09 17:07:38 +02:00
Héctor Ramón
fb1e391d06
Fix doc example in pure::canvas::Program
The `widget` module was missing.
2022-07-09 17:03:47 +02:00
Zoron
d4bf49c84c
Update import path in pure canvas example
In current version, `iced::pure::canvas` would be unresolved.
It should be `iced::pure::widget::canvas`.
2022-07-09 17:03:42 +02:00
Héctor Ramón Jiménez
fa55dff61d
Merge branch 'master' into theming 2022-07-08 19:31:45 +02:00
Héctor Ramón Jiménez
9330a83775
Fix Widget::tag implementation of pure::Canvas
Using `P::State` can cause a panic if the `Canvas` has `()` as
`P::State` and replaces a stateless widget in a future `view` call.
2022-07-01 03:37:28 +02:00
Jhanny Jimenez
a983c0c15b Added more clarification as to how the position and alignment of the Canvas Text structure interact 2022-06-22 17:32:55 -04:00
Héctor Ramón Jiménez
fc13bb3d65
Implement theme styling for Canvas 2022-06-07 05:24:43 +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
Héctor Ramón Jiménez
aecbd46123
Replace hecrj in links with iced-rs 2022-05-02 20:26:59 +02:00
Héctor Ramón Jiménez
68e9eb0a9b
Fix broken intra-doc links in documentation 2022-04-30 14:20:52 +02:00
Héctor Ramón Jiménez
ac35fe3edf
Point repository links to 0.4 branch in documentation 2022-04-30 13:54:07 +02:00
Héctor Ramón
0eef527fa5
Merge pull request #1284 from iced-rs/virtual-widgets
Stateless widgets
2022-03-23 17:11:14 +07:00
Héctor Ramón Jiménez
989c562920
Implement pure version of QRCode widget 2022-03-21 17:22:46 +07:00
Héctor Ramón Jiménez
32fd8dadda
Reintroduce generic Message type for canvas::Program
As it is useful to make the `Message` completely free in many
implementations.
2022-03-18 22:13:52 +07:00
Héctor Ramón Jiménez
d7100fd259
Export widget modules in iced_pure
... and fix collisions with the new `helpers`
2022-03-16 17:37:19 +07:00
Héctor Ramón Jiménez
ec8ed9fa8b
Fix canvas::Frame issuing a new layer for Mesh2D in with_clip
Text will still be rendered in its own layer, until we fix the composition bottleneck in `glyph-brush`.
2022-03-10 23:33:58 +07:00
Héctor Ramón Jiménez
31d814b43c
Implement Widget::tag for pure::Canvas 2022-03-09 19:19:21 +07:00
Héctor Ramón Jiménez
0cddb3c1b5
Implement pure version of Canvas widget 2022-03-09 19:14:55 +07:00
Héctor Ramón Jiménez
c52fd089f1
Use associated type for Message in a canvas::Program 2022-03-09 18:29:10 +07:00
Héctor Ramón Jiménez
12c1a3f829
Remove redundant widget modules in subcrates
Instead, we can define the type aliases just once in the root crate!
2022-03-09 14:10:15 +07:00
Héctor Ramón
4411da25cf
Merge pull request #1264 from tarkah/canvas/clip
Add clip to canvas
2022-03-05 13:31:39 +07:00
Héctor Ramón Jiménez
27e859e153
Use Rectangle directly in Frame::with_clip 2022-03-02 21:03:46 +07:00
Héctor Ramón Jiménez
644c1b70ca
Skip Canvas::draw if bounds have no logical pixels 2022-02-28 18:15:39 +07:00
Cory Forsstrom
f40da376ce Add doc comment 2022-02-23 11:36:41 -08:00
Cory Forsstrom
16b63031c1 Add with_clip for canvas 2022-02-23 11:05:52 -08: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
bace264bfe
Access lyon_algorithms indirectly through lyon 2022-02-03 17:19:48 +07:00
Héctor Ramón Jiménez
f56c8a7361
Ask for a slice of segments instead of ownership in LineDash 2022-02-03 17:18:05 +07:00
Cory Forsstrom
730c57ba67 Remove vec allocation 2022-01-27 10:01:03 -08:00
Cory Forsstrom
e835cea03c Add line dash API 2022-01-27 09:40:52 -08: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
Olivier Pinon
a7bcd65bb8 Decouple the image Handle type from the iced_native implementation 2021-12-10 23:33:58 +01: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
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
c9ed15782c
Introduce state lifetime for style_sheet in Toggler 2021-10-31 17:48:23 +07:00
Héctor Ramón Jiménez
9a3c81f336
Introduce first-class svg module in iced_native 2021-10-31 16:24:31 +07:00
Héctor Ramón Jiménez
c4186a71b7
Introduce first-class image module in iced_native 2021-10-31 16:20:50 +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
77bab6beee
Implement Widget::draw for QRCode in iced_graphics 2021-10-30 20:38:12 +07:00
Héctor Ramón Jiménez
0b66095f9f
Implement Widget::mouse_interaction for Canvas in iced_graphics 2021-10-29 16:47:30 +07:00
Héctor Ramón Jiménez
de728737fd
Implement Widget::draw for Canvas in iced_graphics 2021-10-29 16:45:47 +07:00