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
Héctor Ramón Jiménez
2e4c55bbff
Use for loop instead of fold in span_bounds
2024-07-28 14:17:59 +02:00
Cory Forsstrom
ddcf02f9d0
Add background styling to span / rich text
2024-07-28 13:06:57 +02:00
Héctor Ramón Jiménez
e9e06c8fe2
Add placeholder support to text_editor widget
2024-07-24 14:52:01 +02:00
Héctor Ramón Jiménez
54500e61ed
Simplify font attributes in Paragraph::with_spans
2024-07-21 13:01:27 +02:00
Héctor Ramón Jiménez
9bfaf2840c
Add Link support to rich_text widget
2024-07-21 12:45:05 +02:00
Héctor Ramón Jiménez
910eb72a06
Implement rich_text widget and markdown example
2024-07-17 22:04:11 +02:00
Héctor Ramón Jiménez
ffb520fb37
Decouple caching from Paragraph API
2024-07-17 18:50:53 +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
PgBiel
76f5bc2cce
add SelectAll to TextEditor
2024-07-08 01:16:31 +02:00
Vlad-Stefan Harbuz
a7224a7827
Implement Copy on Fill and Stroke
2024-06-21 11:58:35 +01:00
Héctor Ramón Jiménez
6c1027af8d
Fix text_editor always capturing scroll events
2024-06-17 03:37:00 +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
eac5bcb64f
Fix Image::bounds when rotation present in iced_graphics
2024-05-03 07:04:57 +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
b276a603a1
Fix cache trimming loop in iced_wgpu::text
2024-04-30 23:15:04 +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
3762c0590c
Fix panic when scrolling a TextEditor inside a scrollable
2024-04-26 15:17:10 +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
14b9708f72
Remove leftover renderer module in iced_graphics
2024-04-09 22:29:03 +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