Commit graph

298 commits

Author SHA1 Message Date
shan
72feba51be Fixed some imports/documentation. 2022-10-06 19:13:40 -07:00
shan
9c7bf417ac Added support for gradients to respect current frame transform. 2022-10-06 18:59:54 -07:00
shan
f4878a1a66 Changed tesselation functions to take Vertex2D builder instead of using lyon's builtin Point type to avoid extra copies. 2022-10-06 08:04:43 -07:00
shan
cb7c467654 Fixed lint issues & cleaned up some documentation. 2022-10-06 07:28:05 -07:00
shan
1eb8d972ba Reduced memory transfer of OpenGL gradient uniform upload. Rearranged gradient uniforms on OpenGL side to be more performant. 2022-10-05 16:07:43 -07:00
shan
30432cbade Readjusted namespaces, removed Geometry example as it's no longer relevant. 2022-10-05 10:49:58 -07:00
shan
6e7b3ced0b Reworked wgpu buffers, updated glow side to have proper transform location storage, attempting to fix visibility modifiers, implemented some of the feedback received in initial PR. 2022-10-04 18:24:46 -07:00
Artur Sapek
388b3c3b33
expose touch events in canvas widget 2022-10-04 11:15:35 +02:00
shan
5d0fffc626 Fixed some importing issues since you can use a Shader::Gradient outside a Canvas widget, where it was previously only accessible. 2022-09-30 10:27:00 -07:00
shan
734557bda5 Fixed issue where stops could be declared out of order in the builder but must be sorted before being passed to shader. 2022-09-29 14:01:57 -07:00
shan
40f45d7b7e Adds linear gradient support to 2D meshes in the canvas widget. 2022-09-29 11:15:35 -07:00
Héctor Ramón Jiménez
4655411256
Make Cache::clear immutable 2022-09-13 17:38:44 +02:00
Cory Forsstrom
56ad3a3221 Don't double translate text clip 2022-08-15 09:29:53 -07:00
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
2f76a10a1d
Fix further clippy lints
... and explicitly annotate crates as well.
2022-07-09 18:03:59 +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
e6e3eff876
Bump versions 🎉 2022-07-01 04:03:24 +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
396735b682
Implement theme styling for PickList and Menu 2022-06-07 04:51:44 +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
27fdc70756
Merge branch 'master' into dev/system-information 2022-05-04 17:19:28 +02:00
Héctor Ramón Jiménez
d23026d2dd
Bump versions 🎉 2022-05-02 22:07:53 +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
Richard
005e516b5e Rename get_information to fetch_information 2022-04-27 15:42:53 -03:00
Richard
984d1f375e Move compositor module access from window to crate 2022-04-27 15:25:16 -03:00
Richard
5be1ac18fe Rename GraphicsInformation to Information 2022-04-26 19:09:09 -03:00
Richard
2b4d8a7b26 Implement GraphicsInformation for iced_glow 2022-04-26 18:58:48 -03:00
Richard
83fec2f5f6 Implement GraphicsInformation for iced_wgpu 2022-04-26 18:58:19 -03:00
Richard
e23e4b8db2 Introduce GraphicsInformation to iced_graphics 2022-04-26 18:58:06 -03:00
Richard
1e62fdf069 Introduce Error::ContextCreationFailed 2022-04-20 19:57:59 -03: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