edwloef
a5c42d4cb1
Derive Default for iced_wgpu::geometry::Cache
2024-10-02 15:24:37 +02:00
Gabriel Vogel
26b09e1b4d
Include images and saved meshes when pasting Frame
...
`tiny_skia::Frame` was ignoring images in `Frame::paste`, making images
not show up when created in a `with_clip` context.
`wgpu::Frame` similarly did not pass through meshes in its paste method,
that may have been saved from a nested `with_clip` call.
2024-09-24 22:29:03 +02:00
Vlad-Stefan Harbuz
ec39390c23
Add stroke_rectangle
...
This method should be able to leverage performance improvements in lyon's
`tessellate_rectangle` over `tessellate_path`.
2024-09-10 23:44:04 +02:00
Héctor Ramón Jiménez
d4b08462e5
Introduce Svg struct in core::svg
2024-08-04 04:52:55 +02:00
Héctor Ramón Jiménez
92bd3ecd6b
Introduce Image struct in core::image
2024-08-04 04:30:12 +02:00
Héctor Ramón Jiménez
0ceee1cf3a
Implement image support for canvas widget
2024-08-04 03:28:43 +02:00
Héctor Ramón Jiménez
b5b78d505e
Introduce canvas::Cache grouping
...
Caches with the same `Group` will share their text
atlas!
2024-04-30 07:57:54 +02:00
Héctor Ramón Jiménez
6ad5bb3597
Port iced_tiny_skia to new layering architecture
2024-04-09 22:25:16 +02:00
Héctor Ramón Jiménez
13289dbd19
Merge branch 'master' into wgpu/better-architecture
2024-04-07 14:06:52 +02:00
Héctor Ramón Jiménez
441aac2599
Avoid generating empty caches in iced_wgpu
2024-04-06 03:06:40 +02:00
Héctor Ramón Jiménez
7eb16452f3
Avoid generating empty Frame geometry in iced_wgpu
2024-04-06 00:57:59 +02:00
Héctor Ramón Jiménez
6d3e1d835e
Decouple caching from layering and simplify everything
2024-04-05 23:59:21 +02:00
Héctor Ramón Jiménez
394e599c3a
Fix layer transformations
2024-04-05 00:40:39 +02:00
Héctor Ramón Jiménez
d461f23e8d
Use default tolerance for dashed paths in iced_wgpu
2024-04-03 23:31:13 +02:00
Héctor Ramón Jiménez
b05e61f5c8
Redesign iced_wgpu layering architecture
2024-04-03 21:07:54 +02:00
Héctor Ramón Jiménez
53a183fe0d
Restore canvas::Frame API
2024-03-22 01:35:14 +01:00
Héctor Ramón Jiménez
3645d34d6a
Implement composable, type-safe renderer fallback
2024-03-21 22:27:17 +01:00
Héctor Ramón Jiménez
bad3b1ac47
Show name of current Theme in clock example
2024-03-16 16:52:21 +01:00
Héctor Ramón Jiménez
f4d6648601
Introduce with_transformation to Renderer trait
2024-02-02 02:24:45 +01:00
Héctor Ramón Jiménez
5467c19c80
Replace Primitive::Translate with Transform
2024-02-02 01:53:23 +01:00
Michal Lebeda
f1c63398b3
Add return values to Frame::with_clip() and Frame::with_save()
2024-01-31 19:00:02 +01:00
Héctor Ramón Jiménez
4cb53a6e22
Implement vectorial text support for iced_tiny_skia
2024-01-17 14:49:14 +01:00
Héctor Ramón Jiménez
dd032d9a7a
Implement vectorial text support for iced_wgpu
2024-01-17 14:25:39 +01:00
Héctor Ramón Jiménez
fda96a9eda
Simplify Transform API in iced_wgpu::geometry
2024-01-17 13:44:30 +01:00
Héctor Ramón Jiménez
66bea7bb6d
Apply scaling during Frame::fill_text in iced_wgpu
2024-01-17 13:22:02 +01:00
Héctor Ramón Jiménez
b526ce4958
Rename viewport to clip_bounds
2023-12-02 15:56:28 +01:00
Héctor Ramón Jiménez
936d480267
Clip text to viewport bounds instead of layout bounds
2023-12-01 16:04:27 +01:00
Héctor Ramón Jiménez
34f07b6027
Fix clippy::semicolon_if_nothing_returned
2023-09-20 04:11:52 +02:00
Matthias Vogelgesang
89d9f1d7d2
Fix majority of unresolved documentation links
2023-09-09 18:59:17 +02:00
Héctor Ramón Jiménez
09965b686e
Make scale methods in Frame generic over f32 and Vector
2023-09-07 05:51:39 +02:00
Héctor Ramón Jiménez
1f263051b6
Implement scale in terms of scale_nonuniform
2023-09-07 05:45:51 +02:00
ripytide
5371fae21a
added a Frame::scale_nonuniform method
2023-09-05 10:49:50 +01:00
Héctor Ramón Jiménez
fa5650cfd1
Decouple Mesh primitives from main Primitive type
2023-06-29 07:48:03 +02:00
Héctor Ramón Jiménez
0ae1baa37b
Introduce custom backend-specific primitives
2023-06-29 07:18:20 +02:00
Héctor Ramón Jiménez
faa7627ea4
Introduce web-colors feature flag to enable sRGB linear blending
...
This is how browsers perform color management. They treat
gamma-corrected sRGB colors as if they were linear RGB.
Correctness aside, this mode is introduced for legacy reasons. Most
UI/UX tooling uses this color management as well, and many have created
an intuition about how color should behave from interacting with a
browser.
This feature flag should facilitate application development with `iced`
in those cases.
More details: https://webcolorisstillbroken.com/
2023-05-31 21:31:58 +02:00
Bingus
902e333148
Changed gradient::Packed to be repr(C) for direct gpu upload.
2023-05-26 10:13:18 -07:00
Bingus
413526ad09
Created "Packed" data structure for gradient data.
2023-05-25 10:49:26 -07:00
Bingus
a395e78596
Made gradient pack public for iced_graphics::gradient mod for use with GradientVertex2D.
2023-05-24 13:08:59 -07:00
Héctor Ramón Jiménez
59663d2e45
Avoid packing gradient data for every vertex in iced_wgpu
2023-05-19 03:37:36 +02:00
Héctor Ramón Jiménez
4c1a082f04
Remove Builder abstractions for gradients
2023-05-19 03:32:21 +02:00
Bingus
6551a0b2ab
Added support for gradients as background variants + other optimizations.
2023-05-11 11:13:44 -07:00
Héctor Ramón Jiménez
de638f44a5
Write missing documentation in iced_wgpu
2023-05-11 15:37:56 +02:00
Héctor Ramón Jiménez
9499a8f9e6
Support configurable LineHeight in text widgets
2023-05-04 18:39:31 +02:00
Héctor Ramón Jiménez
4bd290afe7
Introduce text::Shaping enum and replace magic boolean
2023-05-02 01:02:32 +02:00
Héctor Ramón Jiménez
33b5a90019
Make basic text shaping the default shaping strategy
2023-05-02 01:02:13 +02:00
Héctor Ramón Jiménez
3a0d34c024
Create iced_widget subcrate and re-organize the whole codebase
2023-03-04 05:37:11 +01:00
Héctor Ramón Jiménez
6cc48b5c62
Move Canvas and QRCode to iced crate
...
Rename `canvas` modules to `geometry` in graphics subcrates
2023-03-03 04:57:55 +01:00