Commit graph

501 commits

Author SHA1 Message Date
Héctor Ramón Jiménez
d3011992a7
Implement basic syntax highlighting with syntect in editor example 2023-09-17 19:04:23 +02:00
Héctor Ramón Jiménez
76dc82e8e8
Draft Highlighter API 2023-09-17 15:29:14 +02:00
Héctor Ramón Jiménez
723111bb0d
Remove unnecessary into_iter call in graphics::text 2023-09-16 19:09:31 +02:00
Héctor Ramón Jiménez
c9dbccba46
Use fork of cosmic-text with some minor fixes 2023-09-16 16:27:02 +02:00
Héctor Ramón Jiménez
d051f21597
Implement Copy and Paste actions for text::Editor 2023-09-16 15:40:16 +02:00
Héctor Ramón Jiménez
c6d0443627
Implement methods to query the contents of a TextEditor 2023-09-16 15:27:25 +02:00
Héctor Ramón Jiménez
3afac11784
Remove min_bounds field in graphics::text::Editor 2023-09-14 18:58:52 +02:00
Héctor Ramón Jiménez
c7d02e24e6
Remove Editor::min_bounds and use bounds instead 2023-09-14 18:57:09 +02:00
Héctor Ramón Jiménez
8cad1d682a
Implement Action::SelectLine in text::Editor 2023-09-14 15:23:20 +02:00
Héctor Ramón Jiménez
f7d66899f1
Implement Action::SelectWord in text::Editor 2023-09-14 15:20:23 +02:00
Héctor Ramón Jiménez
edd5918475
Implement motion selection in text::Editor 2023-09-14 14:25:46 +02:00
Héctor Ramón Jiménez
b24b94d827
Handle motions when a selection is present in text::Editor 2023-09-14 14:18:49 +02:00
Héctor Ramón Jiménez
e6c2db8a93
Fix Cursor::Caret position on lines that wrap on whitespace 2023-09-14 00:47:04 +02:00
Héctor Ramón Jiménez
ab020383b9
Fix scrolling offset for Cursor::Selection 2023-09-14 00:41:15 +02:00
Héctor Ramón Jiménez
f14ef7a606
Fix clippy lints 2023-09-13 16:31:56 +02:00
Héctor Ramón Jiménez
f4c51a96d5
Introduce Motion concept in core::text::editor 2023-09-13 16:11:43 +02:00
Héctor Ramón Jiménez
40eb648f1e
Implement Cursor::Selection calculation in Editor::cursor 2023-09-13 15:00:33 +02:00
Héctor Ramón Jiménez
a28ed825c1
Fix subline positioning in Editor::cursor 2023-09-12 20:57:46 +02:00
Héctor Ramón Jiménez
4389ab9865
Fix cursor offset with Affinity::After at the end of lines in Editor::cursor 2023-09-12 18:27:30 +02:00
Héctor Ramón Jiménez
abab144857
Return Cursor::Caret if selection matches cursor position in Editor::cursor 2023-09-12 18:20:02 +02:00
Héctor Ramón Jiménez
1455911b63
Add Enter variant to Action in text::Editor 2023-09-12 15:03:23 +02:00
Héctor Ramón Jiménez
6448429103
Draft Editor API and TextEditor widget 2023-09-12 14:51:00 +02:00
Héctor Ramón Jiménez
346af3f8b0
Make FontSystem global and simplify Paragraph API 2023-09-11 02:47:24 +02:00
Héctor Ramón Jiménez
b42b24b79a
Fix (more) broken intradoc links
Good thing I just set up CI earlier for this 😅
2023-09-10 00:55:46 +02:00
Héctor Ramón Jiménez
b8e5693a30
Merge branch 'master' into explicit-text-caching 2023-09-10 00:34:21 +02:00
Héctor Ramón Jiménez
9565123389
Remove unused unicode-segmentation dependency from iced_graphics 2023-09-09 23:06:06 +02:00
Héctor Ramón Jiménez
bbb9c2d928
Count grapheme clusters in Paragraph::grapheme_position 2023-09-09 23:05:44 +02:00
Héctor Ramón Jiménez
419d9374b7
Fix outstanding broken intradoc links 2023-09-09 21:08:23 +02:00
Héctor Ramón Jiménez
f60884f6f8
Deny broken_intradoc_links and verify documentation in CI 2023-09-09 20:58:45 +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
3450987355
Invalidate existing paragraphs when new fonts are loaded 2023-09-09 11:21:32 +02:00
Héctor Ramón Jiménez
f468e25d0c
Use workspace dependencies and package inheritance
We are also taking this as a chance to synchronize
the versions of all the crates! Because of this, we
will skip the `0.11` version.
2023-09-04 13:08:17 +02:00
Héctor Ramón Jiménez
34495bba1c
Introduce keyed::Column widget 2023-09-04 02:55:09 +02:00
Héctor Ramón Jiménez
6758de2b43
Fix Default implementation for Paragraph 2023-09-01 04:14:06 +02:00
Héctor Ramón Jiménez
51e69d7040
Replace MaybeUninit with Option in paragraph 2023-09-01 04:04:15 +02:00
Héctor Ramón Jiménez
935c722a27
Use Arc::try_unwrap in Paragraph
We use `MaybeUninit` here instead of `Option` to save some cycles, but
I will most likely change it for an `Option` since unsafe code is quite
scary.
2023-09-01 03:59:57 +02:00
Héctor Ramón Jiménez
ce22d661fa
Remove Clone implementation for Paragraph 2023-09-01 03:25:29 +02:00
Héctor Ramón Jiménez
89acf0217e
Use min_bounds for cached text 2023-08-30 05:06:08 +02:00
Héctor Ramón Jiménez
ed3454301e
Implement explicit text caching in the widget state tree 2023-08-30 04:31:21 +02:00
Kxie
76ffbbd06e
Update arc.rs with improved documentation
added units and improved description to field comments of Arc and Ellipse structs.
2023-08-15 07:52:30 +02:00
Héctor Ramón Jiménez
126aef88e7
Bump versions 🎉 2023-07-28 19:48:39 +02:00
Bingus
d53ccc857d
refactored window storage;
new helper window events (Destroyed, Created);
clippy + fmt;
2023-07-21 13:53:38 -07:00
Héctor Ramón Jiménez
d666e739cd
Trim text measurements only before layout 2023-06-29 18:23:11 +02:00
Héctor Ramón Jiménez
cdce03cf7f
Revert "Remove layout method from core::Renderer trait"
This reverts commit 2128472c2a.
2023-06-29 18:17:18 +02:00
Héctor Ramón Jiménez
6921564c9f
Write missing docs in iced_graphics and iced_wgpu 2023-06-29 07:55:52 +02: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
2128472c2a
Remove layout method from core::Renderer trait 2023-06-29 07:18:24 +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
78ad365db2
Reuse entries in text::Cache in iced_wgpu 2023-06-28 00:35:37 +02:00
Héctor Ramón
c7332c1522
Merge pull request #1885 from bungoboingo/gradient-packing-optimization
Small gradient optimization
2023-06-27 22:10:17 +02:00