Héctor Ramón Jiménez
015f5283a8
Introduce presentation metrics and send them to comet
2025-04-09 21:50:21 +02:00
Héctor Ramón Jiménez
e060129951
Merge branch 'master' into beacon
2025-04-01 02:18:20 +02:00
Héctor Ramón Jiménez
ced4276a5e
Replace Rc with Arc in tiny_skia renderer
2025-03-29 21:24:48 +01:00
Héctor Ramón Jiménez
5e5c7c85ad
Append renderer name to iced_test snapshots
2025-03-24 20:22:17 +01:00
Héctor Ramón Jiménez
576dd22733
Split local state from Engine in iced_wgpu
2025-03-24 20:22:15 +01:00
Héctor Ramón Jiménez
31b98ee3eb
Notify window before presentation
2025-03-18 18:29:19 +01:00
Héctor Ramón Jiménez
ebfcb65841
Merge branch 'master' into beacon
2025-03-11 22:25:06 +01:00
Héctor Ramón Jiménez
0e4a392731
Introduce text::Alignment with Justified support
2025-03-11 02:30:50 +01:00
Héctor Ramón Jiménez
179a34d37b
Fix horizontal text alignment
2025-03-11 00:43:51 +01:00
Héctor Ramón Jiménez
8bd5de72ea
Merge branch 'master' into beacon
2025-03-04 19:11:37 +01:00
Héctor Ramón Jiménez
9ceb467e6e
Run cargo fmt
2025-02-21 01:37:13 +01:00
Héctor Ramón Jiménez
2cf4abf25b
Support custom renderers in iced_test through renderer::Headless trait
2024-12-14 03:49:24 +01:00
Ian Douglas Scott
3fc57b7d95
Remove surface argument of Compositor::screenshot
...
This argument was completely ignored by the wgpu renderer, and used only
for the `clip_mask` by the `tiny_skia` renderer. I believe creating a
new clip mask is correct.
This way it's possible to render offscreen without needing a surface.
2024-11-21 16:26:17 -08: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
Jovansonlee Cesar
0c502801e3
Make rendering of svg that has text work out of the box ( #2560 )
...
* fix: load system fonts to usvg font_db, this will make rendering of text in svg that has it
* feat: add an example that renders svg that has text on it
* Initialize `fontdb` only once for `vector` images
* Remove `svg_text` example
* Set `fontdb` for `usvg::Options` in `tiny_skia::vector`
---------
Co-authored-by: Héctor Ramón Jiménez <hector@hecrj.dev>
2024-09-13 21:43:00 +00:00
Héctor Ramón Jiménez
fe8f41278d
Leverage stroke for stroke_rectangle in tiny-skia backend
2024-09-10 23:45:33 +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
8708101c89
Simplify types in tiny_skia::layer
2024-08-04 04:33:30 +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
87a613edd1
Render text on top of images by default
2024-08-03 16:24:07 +02:00
Héctor Ramón
616689ca54
Update cosmic-text and resvg ( #2416 )
...
* Update `cosmic-text`, `glyphon`, and `resvg`
* Fix slow font fallback with `Shaping::Basic` in `cosmic-text`
* Update `cosmic-text` and `resvg`
* Update `cosmic-text`
* Fix `SelectAll` action in `editor`
* Fix some panics in `graphics::text::editor`
* Remove empty `if` statement in `tiny_skia::vector`
* Update `cosmic-text`, `glyphon`, and `rustc-hash`
2024-07-17 13:00:00 +02:00
Héctor Ramón Jiménez
aaf396256e
Merge branch 'master' into beacon
2024-05-09 12:32:25 +02:00
Héctor Ramón Jiménez
fa9e1d96ea
Introduce dynamic opacity support for Image and Svg
2024-05-03 13:25:58 +02:00
Héctor Ramón Jiménez
15057a05c1
Introduce center widget helper
...
... and also make `center_x` and `center_y` set
`width` and `height` to `Length::Fill`, respectively.
This targets the most common use case when centering
things and removes a bunch of boilerplate as a result.
2024-05-03 09:11:46 +02:00
Héctor Ramón Jiménez
568ac66486
Remove commented code in tiny_skia::layer
2024-05-02 17:28:29 +02:00
Héctor Ramón Jiménez
a57313b23e
Simplify image rotation API and its internals
2024-05-02 17:28:28 +02:00
Héctor Ramón Jiménez
09a6bcfffc
Add Image rotation support
...
Co-authored-by: DKolter <68352124+DKolter@users.noreply.github.com>
2024-05-02 17:27:45 +02:00
Héctor Ramón Jiménez
b52c7bb610
Use an opaque Id type for image::Handle
...
Hashing pointers is a terrible idea.
2024-05-01 01:39:43 +02:00
Héctor Ramón Jiménez
45254ab88c
Use Bytes as the Container of ImageBuffer
...
Since we don't need to mutate images once loaded,
we avoid unnecessary extra allocations.
2024-05-01 00:55:49 +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
43aafb7b79
Clip quad damage with layer bounds in iced_tiny_skia
2024-04-10 20:31:44 +02:00
Héctor Ramón Jiménez
1e8554bf02
Sort damage by distance from origin in iced_graphics::damage
2024-04-10 20:23:07 +02:00
Héctor Ramón Jiménez
fdd9896dc5
Track image damage in iced_tiny_skia
2024-04-10 19:55:27 +02:00
Héctor Ramón Jiménez
32cd456fb9
Account for transformation in Text::visible_bounds
2024-04-10 16:26:55 +02:00
Héctor Ramón Jiménez
1e802e776c
Reintroduce damage tracking for iced_tiny_skia
2024-04-10 15:21:42 +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
5cd98f069d
Use built-in [lints] table in Cargo.toml
2024-04-07 12:42:12 +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
c7a4fad4a2
Merge pull request #2357 from iced-rs/wgpu/use-staging-belt
...
Use a `StagingBelt` in `iced_wgpu` for regular buffer uploads
2024-03-30 23:49:26 +01:00
Héctor Ramón Jiménez
faa53647cc
Replace xxhash-rust with rustc-hash
2024-03-30 15:57:50 +01:00
Daniel Yoon
39f57a258e
Make tiny-skia equivalent
2024-03-26 13:02:04 +11:00
Héctor Ramón Jiménez
4f5b63f1f4
Reintroduce backend selection through ICED_BACKEND env var
2024-03-24 08:04:28 +01:00
Héctor Ramón Jiménez
441e9237cd
Rename compositor::Renderer to Default
2024-03-22 19:35:19 +01:00
Héctor Ramón Jiménez
5137d655e6
Allow custom renderers in Program and Application
2024-03-22 07:09:51 +01:00
Héctor Ramón Jiménez
4f2f40c68b
Fix standalone compilation of iced_widget crate
2024-03-22 05:41:15 +01:00
Héctor Ramón Jiménez
1f13a91361
Make iced_tiny_skia optional with a tiny-skia feature
2024-03-22 05:27:31 +01:00
Héctor Ramón Jiménez
53a183fe0d
Restore canvas::Frame API
2024-03-22 01:35:14 +01:00