Commit graph

598 commits

Author SHA1 Message Date
Héctor Ramón Jiménez
c639c185d3
Fix naive merging logic in layer::Stack 2025-08-17 00:04:45 +02:00
Héctor Ramón Jiménez
d3e9547079
Implement basic layer merging for graphics::layer::Stack 2025-08-16 23:20:43 +02:00
Héctor Ramón Jiménez
d5cd0a6de9
Fix lints for Rust 1.89 and bump MSRV to 1.88 2025-08-07 22:38:22 +02:00
Héctor Ramón Jiménez
35df95e988
Fix broken intra-doc link in graphics::text 2025-08-05 22:20:30 +02:00
DKolter
5a4dfe1809 Fix Path::circle artifact 2025-06-03 14:56:57 +02:00
DKolter
371d0784a8 fix: Text::visible_bounds applies duplicate alignment for tiny skia 2025-05-29 12:03:27 +02:00
dtzxporter
ad30dea69b Copy vsync setting. 2025-05-04 14:26:49 -04:00
dtzxporter
5dcab9bf3a Expose setting to disable vsync if requested.
- This improves rendering performance on windows 10x and doesn't result in noticeable tearing. The user can decide if they want it anyways.
2025-05-04 14:25:16 -04:00
Héctor Ramón Jiménez
6bf709e03e
Make anchoring explicit and improve reusability of text pipelines 2025-05-04 03:54:42 +02:00
Héctor Ramón Jiménez
acde7ea735
Implement Frame::stroke_text in canvas API 2025-05-01 03:00:31 +02:00
Héctor Ramón Jiménez
97b4ed0d84
Support max_width and text::Alignment for canvas::Text 2025-04-30 04:19:15 +02:00
Juniper
0b6e0667ae Indent and Unindent Text Editor Actions 2025-04-24 17:20:19 -04:00
Héctor Ramón Jiménez
d1e936fb25
Re-align Paragraph on resize
Fixes #2888
2025-04-12 00:48:57 +02:00
Héctor Ramón Jiménez
c335b256a1
Fix Fira Sans not being used as default font on Wasm 2025-04-09 19:12:41 +02:00
Héctor Ramón Jiménez
6bf6fc60c9
Update cosmic-text to 0.14 2025-04-09 18:40:38 +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
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
fd1101bd5f
Unify Program definition in iced_program subcrate 2025-03-12 02:10:42 +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
2eb5770b1d
Add TODO to align function in text::paragraph 2025-03-11 00:58:15 +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
201245a85d
Update cosmic-text to 0.13 2025-03-10 19:54:04 +01:00
Héctor Ramón Jiménez
fb2544021a
Update wgpu to 24 and use cryoglyph fork
Co-authored-by: Winfried Baumann <codewing@web.de>
2025-03-09 01:38:34 +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
c12beecd38
Remove unnecessary Future imports 2025-02-21 01:41:56 +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
7979125ed7
Simplify InputMethod API with only two states
Co-authored-by: rhysd <lin90162@yahoo.co.jp>
Co-authored-by: KENZ <KENZ.gelsoft@gmail.com>
2025-02-12 08:46:35 +01:00
Héctor Ramón Jiménez
87165ccd29
Introduce LineEnding to editor and fix inconsistencies 2025-01-28 06:23:38 +01:00
Héctor Ramón Jiménez
bffe572a04
Fix text wrapping for rich_text 2025-01-10 23:36:45 +01:00
Konsl
664caf7087
Apply wrapping to paragraphs 2025-01-07 00:30:14 +01:00
Tommy Volk
0e8c3fe30f
chore: remove once_cell dependency 2025-01-06 22:56:48 +01:00
Héctor Ramón Jiménez
bfa722c662
Skip loading fonts that were previously loaded 2024-12-14 04:09:51 +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
Héctor Ramón Jiménez
6572909ab5
Embed and use Fira Sans as default font when testing 2024-12-12 03:15:32 +01:00
Héctor Ramón Jiménez
602661372c
Fix new clippy lints 2024-12-02 19:56:27 +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
Rose Hogenson
f3733a811b Use float total_cmp instead of partial_cmp to get a total order.
Since Rust version 1.81, sort_by will panic if the provided comparison
function does not implement a total order.
See https://github.com/rust/lang/rust/issues/129561 for more details.
The simplest fix seems to be to use total_cmp instead of partial_cmp.
2024-10-26 09:28:20 -07:00
bbb651
7a86900a45 Fix various typos
Using https://github.com/crate-ci/typos
2024-09-29 16:37:35 +03:00
Héctor Ramón
62b4da87d1
Merge pull request #2575 from m4rch3n1ng/rm-clone-trait-bound
remove unnecessary Clone trait bound for Cache::clear
2024-09-13 02:02:49 +02:00
may
e140c03b9b
Remove Clone bound for graphics::Cache::clear 2024-09-13 01:54:23 +02:00
Gints Polis
7e89015e60
Add rounded_rectangle to geometry::Path 2024-09-13 00:58:27 +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
529c459c56
Remove unnecessary buffer_mut_from_editor call 2024-09-04 21:28:44 +02:00
Héctor Ramón Jiménez
f98328f4f1
Add text::Wrapping support
Co-authored-by: Neeraj Jaiswal <neerajj85@gmail.com>
2024-09-04 21:26:47 +02:00
Héctor Ramón Jiménez
2b1b9c984a
Implement missing draw_svg in Frame wrapper 2024-08-04 05:03:48 +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