Commit graph

49 commits

Author SHA1 Message Date
Héctor Ramón Jiménez
67e489e382
Update to Rust 2024 and fix compiler errors 2025-02-21 01:37:13 +01:00
Héctor Ramón Jiménez
cb30f9f604
Remove dbg! leftover in core::widget::text 2024-12-10 04:51:08 +01:00
Héctor Ramón Jiménez
d09d5d45ae
Draft iced_test crate and test todos example 2024-12-10 04:51:08 +01:00
Héctor Ramón Jiménez
602661372c
Fix new clippy lints 2024-12-02 19:56:27 +01:00
BradySimon
f912d26d64
Add PartialEq derives for widget styles 2024-10-14 20:59:32 +02:00
Héctor Ramón Jiménez
6ad7c7d308
Show text doc examples in multiple places 2024-09-19 06:10: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
c851e67734
Fix text::State downcast in some widgets 2024-07-19 00:59:54 +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 Jiménez
5e6d994199
Add default and base stylings to text widget 2024-07-13 13:26:37 +02:00
Héctor Ramón Jiménez
76737351ea
Re-export variants of Length and alignment types 2024-07-12 18:12:34 +02:00
Héctor Ramón Jiménez
f9dd5cbb09
Introduce helper methods for alignment for all widgets 2024-07-12 15:14:43 +02:00
Héctor Ramón Jiménez
03e8078f42
Add some built-in text styles for each Palette color 2024-07-11 04:57:40 +02:00
Héctor Ramón Jiménez
99a904112c
Implement IntoFragment for Fragment 2024-04-02 10:09:13 +02:00
Héctor Ramón Jiménez
dee43d5f66
Implement IntoFragment for usize and isize 2024-04-02 09:24:22 +02:00
Héctor Ramón Jiménez
34f799aa3d
Rename text::IntoContent to IntoFragment 2024-04-01 21:48:47 +02:00
Héctor Ramón Jiménez
1d83e59e8a
Specialize widget::text helper with custom IntoContent trait 2024-04-01 21:36:08 +02:00
Héctor Ramón Jiménez
f0ae9a0c38
Use Catalog approach for all widgets 2024-03-24 05:03:09 +01:00
Héctor Ramón Jiménez
aeb72d528f
Use closures for Text::style 2024-03-12 14:35:55 +01:00
rustrover
500ba962d1 fix some comments
Signed-off-by: rustrover <seekseat@126.com>
2024-03-09 15:26:37 +08:00
Héctor Ramón Jiménez
8919f2593e
Clarify docs of Text::color_maybe 2024-03-08 13:51:34 +01:00
Héctor Ramón Jiménez
34e7c6593a
Use Style struct pattern instead of trait for all widgets 2024-03-06 20:30:58 +01:00
Héctor Ramón Jiménez
4130ae4be9
Simplify theming for Text widget 2024-03-04 19:32:13 +01:00
Héctor Ramón Jiménez
7a50e9e8fb
Convert Renderer::Theme to generic Widget type 2024-01-21 17:56:01 +01:00
Héctor Ramón Jiménez
d62bb8193c
Introduce useful helpers in layout module 2024-01-10 10:01:49 +01:00
Héctor Ramón Jiménez
d278bfd21d
Replace width and height with Widget::size 2024-01-10 10:01:49 +01:00
Héctor Ramón Jiménez
0655a20ad1
Make Shrink have priority over Fill in layout 2024-01-04 06:51:21 +01:00
Héctor Ramón Jiménez
936d480267
Clip text to viewport bounds instead of layout bounds 2023-12-01 16:04:27 +01:00
Héctor Ramón Jiménez
6582387579
Merge branch 'master' into text-editor 2023-10-27 03:58:45 +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
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
b51ffe53ed
Fix unnecessary dereference in widget::text 2023-08-30 06:44:40 +02:00
Héctor Ramón Jiménez
a026e917d3
Make widget::Tree mutable in Widget::layout 2023-08-30 06:36:24 +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
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 Jiménez
34451bff18
Implement basic cursor availability 2023-06-08 20:11:59 +02:00
Héctor Ramón Jiménez
16bf8fc762
Export Shaping and LineHeight in widget::text 2023-05-08 15:37:29 +02:00
Héctor Ramón Jiménez
9499a8f9e6
Support configurable LineHeight in text widgets 2023-05-04 18:39:31 +02:00
Héctor Ramón Jiménez
4bd290afe7
Introduce text::Shaping enum and replace magic boolean 2023-05-02 01:02:32 +02:00
Héctor Ramón Jiménez
33b5a90019
Make basic text shaping the default shaping strategy 2023-05-02 01:02:13 +02:00
Ian Douglas Scott
47016a37df Do not require Copy for text StyleSheet::Style
For most widgets, `Style` only requires `Default`. A few require
`Clone`. Only this one requires `Copy`.

Some of the types in the default theme has a custom variant requiring
`Box<dyn Trait>`, or `Rc<dyn Trait>` to provide `Clone`, but this isn't
possible if `Copy` is required.

It would be good to also address the inconsistency of requiring `Clone`
in some places and not others.

This removes `style/src/text.rs` which is unused in this branch and thus
confusing. If there's a reason to keep it, that can be removed from the
change.
2023-04-28 10:14:15 -07:00
Héctor Ramón Jiménez
3a0d34c024
Create iced_widget subcrate and re-organize the whole codebase 2023-03-04 05:37:11 +01:00
Héctor Ramón Jiménez
65eb218d3d Move widgets from core to native and web
Also made fields private and improved `Renderer` traits.
2019-11-21 13:47:20 +01:00
Héctor Ramón Jiménez
d3553adf27 Write documentation for iced_core 2019-11-18 07:16:19 +01:00
Héctor Ramón Jiménez
6857829dc3 Draft Font type and implement Text::font 2019-11-13 07:22:21 +01:00
Héctor Ramón Jiménez
b9e0f74948 Create iced_core and iced_native 2019-09-20 19:15:31 +02:00
Héctor Ramón Jiménez
a97401aed2 Rethink workspace structure 2019-09-14 19:16:06 +02:00
Héctor Ramón Jiménez
8b8f7563ad Switch to workspace layout 2019-09-10 19:41:49 +02:00
Renamed from src/widget/text.rs (Browse further)