Vlad-Stefan Harbuz
10ef48c98a
doc: fix "Reconciles" typo
2024-06-30 20:46:04 +01:00
Héctor Ramón Jiménez
b328da2c71
Fix Send requirements for Wasm targets
2024-06-14 01:52:30 +02:00
Héctor Ramón Jiménez
a25b1af456
Replace Command with a new Task API with chain support
2024-06-14 01:47:39 +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
fc285d3e46
Merge pull request #1964 from bungoboingo/feat/multi-window-support
...
[Feature] 🪟 Multi Window 🪟 .. redux!
2023-12-05 01:03:09 +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
e09b4e24dd
Merge branch 'master' into feat/multi-window-support
2023-11-29 22:28:31 +01: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
34f07b6027
Fix clippy::semicolon_if_nothing_returned
2023-09-20 04:11:52 +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
34495bba1c
Introduce keyed::Column widget
2023-09-04 02:55:09 +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
e2ba7ece83
Introduce visible_bounds operation for Container
2023-07-27 01:04:18 +02:00
Bingus
633f405f3f
Merge remote-tracking branch 'origin/master' into feat/multi-window-support
...
# Conflicts:
# Cargo.toml
# core/src/window/icon.rs
# core/src/window/id.rs
# core/src/window/position.rs
# core/src/window/settings.rs
# examples/integration/src/main.rs
# examples/integration_opengl/src/main.rs
# glutin/src/application.rs
# native/src/subscription.rs
# native/src/window.rs
# runtime/src/window/action.rs
# src/lib.rs
# src/window.rs
# winit/Cargo.toml
# winit/src/application.rs
# winit/src/icon.rs
# winit/src/settings.rs
# winit/src/window.rs
2023-07-12 12:23:18 -07: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
8e8808f0e1
Merge branch 'master' into advanced-text
2023-05-02 06:40:48 +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
8af69be47e
Converge Command types from iced_futures and iced_native
2023-03-05 06:23:40 +01: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
e640b87590
Derive Clone for text_input::State
2019-11-17 07:03:22 +01:00
Héctor Ramón Jiménez
be5466a0a7
Remove argument from text_input::State::focused
2019-11-13 07:57:22 +01:00
Héctor Ramón Jiménez
657e513651
Implement text_input::State::focused
2019-11-13 07:38:06 +01:00
Héctor Ramón Jiménez
2337029602
Remove default styling of Button
...
- A background will only show if explicitly set.
- `iced_wgpu` won't apply a `min_width` of 100 units anymore.
2019-11-13 07:36:50 +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
860a6923bb
Split text measurements cache from rendering cache
...
This speeds up layouting in the most common scenario considerably!
🎉
2019-11-11 06:07:31 +01:00
Héctor Ramón Jiménez
d4d14b68f4
Remove padding from Container for now
2019-11-11 05:37:51 +01:00
Héctor Ramón Jiménez
ceb02f4a36
Implement Container widget
...
Remove `align_self` and `justify_content` methods
2019-11-11 05:26:08 +01:00