Héctor Ramón Jiménez
b152ecda63
Separate Compositor::new from Compositor::create_renderer
2023-12-02 20:49:47 +01:00
Héctor Ramón Jiménez
6740c2c5d6
Fix broken intra-doc links
2023-11-29 22:46:47 +01:00
Héctor Ramón Jiménez
e09b4e24dd
Merge branch 'master' into feat/multi-window-support
2023-11-29 22:28:31 +01:00
Bingus
781ef1f94c
Added support for custom shader widget for iced_wgpu backend.
2023-11-14 11:31:44 +01:00
Héctor Ramón Jiménez
a5125d6fea
Refactor texture image filtering
...
- Support only `Linear` or `Nearest`
- Simplify `Layer` groups
- Move `FilterMethod` to `Image` and `image::Viewer`
2023-11-11 07:22:51 +01:00
dtzxporter
98e088e731
Migrate twox-hash -> xxhash_rust. Switch to Xxh3 for better performance.
...
xxhash-rust is more maintained, built against `::core`, so no workaround for wasm is necessary. Switch to Xxh3 for better performance, which shows when loading/hashing image buffers.
2023-11-11 03:40:22 +01:00
Héctor Ramón Jiménez
57f9024e89
Fix intra-doc broken links
2023-10-27 05:19:35 +02:00
Héctor Ramón Jiménez
625cd745f3
Write documentation for the new text APIs
2023-10-27 05:04:14 +02:00
Héctor Ramón Jiménez
6582387579
Merge branch 'master' into text-editor
2023-10-27 03:58:45 +02:00
Héctor Ramón Jiménez
f137d71e8f
Centralize clippy lints in .cargo/config.toml
2023-09-20 16:40:03 +02:00
Héctor Ramón Jiménez
34f07b6027
Fix clippy::semicolon_if_nothing_returned
2023-09-20 04:11:52 +02:00
Héctor Ramón Jiménez
be340a8cd8
Fix gamma correction for colored glyphs in iced_wgpu
2023-09-19 23:00:20 +02:00
Héctor Ramón
e8b01eb543
Merge pull request #2092 from nyurik/clippy
...
Chore: Apply some minor clippy fixes
2023-09-19 13:30:51 +02:00
Yuri Astrakhan
efd0ff6ded
Chore: Apply some minor clippy fixes
...
* Use `.elapsed()` for duration
* Use direct iteration without calling `.iter()` and the like
* order fields in the `Text` struct creation as declared
2023-09-19 01:52:25 -04:00
Yuri Astrakhan
c6554d9907
Chore: Apply clippy docs keyword quoting
...
Add quotes a number of doc strings like `sRGB`
2023-09-19 01:50:05 -04:00
Héctor Ramón Jiménez
4e757a26d0
Implement Scroll action in text::editor
2023-09-19 01:18:06 +02:00
Héctor Ramón Jiménez
e7326f0af6
Flesh out the editor example a bit more
2023-09-18 19:07:41 +02:00
Héctor Ramón Jiménez
61ef8f3249
Update version properly when FontSystem changes in text::editor
2023-09-18 13:58:55 +02:00
Héctor Ramón Jiménez
b5466f41ca
Fix inconsistent expect messages in text::editor
2023-09-18 13:58:39 +02:00
Héctor Ramón Jiménez
a01b123cec
Shape as needed only in update during layout
2023-09-18 13:57:47 +02:00
Héctor Ramón Jiménez
d1440ceca6
Find correct last_visible_line in Editor::highlight
2023-09-18 13:39:47 +02:00
Héctor Ramón Jiménez
86d396cf8b
Avoid adding unnecessary spans when syntax highlighting
2023-09-17 23:15:38 +02:00
Héctor Ramón Jiménez
2897986f2d
Notify Highlighter of topmost line change
2023-09-17 19:27:51 +02:00
Héctor Ramón Jiménez
23d00445ff
Use saturating_sub for last_visible_line in text::Editor
2023-09-17 19:06:20 +02:00
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