Commit graph

3321 commits

Author SHA1 Message Date
Héctor Ramón Jiménez
33b5a90019
Make basic text shaping the default shaping strategy 2023-05-02 01:02:13 +02:00
Héctor Ramón
57a276e165
Merge pull request #1814 from ids1024/advanced-text
Do not require `Copy` for text `StyleSheet::Style`
2023-04-28 19:41:40 +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
c31ab8eee6
Merge pull request #1811 from iced-rs/incremental-rendering
Incremental rendering
2023-04-27 16:09:39 +02:00
Héctor Ramón Jiménez
a755472ee3
Remove unnecessary last_ prefix in Surface of iced_tiny_skia 2023-04-27 15:51:51 +02:00
Héctor Ramón Jiménez
eb1b2bf241
Invalidate last_primitives on resize in iced_tiny_skia 2023-04-27 15:45:02 +02:00
Héctor Ramón Jiménez
38f82ab35f
Expand damage regions of Clip primitives a bit 2023-04-27 15:25:59 +02:00
Héctor Ramón Jiménez
200a29c069
Fix unused import in triangle pipeline for Wasm target in iced_wgpu 2023-04-27 15:17:45 +02:00
Héctor Ramón Jiménez
88d3247717
Fix build of integration example for Wasm target 2023-04-27 15:17:06 +02:00
Héctor Ramón Jiménez
92d808ee73
Fix double reference in compositor in iced_tiny_skia 2023-04-27 15:16:05 +02:00
Héctor Ramón Jiménez
af0303f95e
Move damage tracking logic to compositor in iced_tiny_skia 2023-04-27 15:10:41 +02:00
Héctor Ramón Jiménez
d953d12c38
Fix incorrect wgpu version for Wasm builds in iced_wgpu 2023-04-26 16:48:41 +02:00
Héctor Ramón Jiménez
9c63eb7df5
Update tiny-skia and resvg 2023-04-26 16:46:27 +02:00
Héctor Ramón Jiménez
e63cc181bd
Fix Candidate::build in compositor of iced_renderer 2023-04-26 16:28:47 +02:00
Héctor Ramón Jiménez
f0fa5f76cb
Remove debug overlay from iced_tiny_skia for now 2023-04-26 16:15:53 +02:00
Héctor Ramón Jiménez
d6345ff122
Remove dbg! statement leftover 2023-04-26 16:11:35 +02:00
Héctor Ramón Jiménez
435b54e57e
Revert "Use pixels for presentation in iced_tiny_skia when possible"
This reverts commit 16e6efe020.
2023-04-26 16:09:36 +02:00
Héctor Ramón Jiménez
619ba9294d
Merge branch 'advanced-text' into incremental-rendering 2023-04-17 23:46:18 +02:00
Héctor Ramón Jiménez
e3730106e9
Update glyphon to latest dev 2023-04-17 23:44:26 +02:00
Héctor Ramón Jiménez
4bae457c37
Merge branch 'master' into advanced-text 2023-04-17 23:41:12 +02:00
Héctor Ramón Jiménez
4b05f42fd6
Bump version of iced_lazy 🎉 2023-04-13 16:13:56 +02:00
Héctor Ramón
25fc3ff7f1
Merge pull request #1791 from tarkah/fix/component-operate
Add missing operations for component
2023-04-13 16:13:14 +02:00
Héctor Ramón Jiménez
c79cc2d2b3
Bump versions 🎉 2023-04-13 08:41:09 +02:00
Héctor Ramón Jiménez
b1a5341a45
Add script to generate a release summary
Courtesy of GPT-4
2023-04-13 08:25:46 +02:00
Cory Forsstrom
4297d1a04a
Add missing operations for component 2023-04-12 22:45:43 -07:00
Héctor Ramón
ded88d79c8
Merge pull request #1594 from mmstick/listener
`MouseArea` widget
2023-04-13 07:12:02 +02:00
Héctor Ramón Jiménez
0c39112a2e
Remove support for on_mouse_enter and on_mouse_exit in MouseArea
These need continuity guarantees (e.g. mandatory widget id), which we
don't have yet!
2023-04-13 06:58:53 +02:00
Héctor Ramón Jiménez
020f1120e3
Fix documentation of MouseArea::new 2023-04-13 06:50:00 +02:00
Héctor Ramón Jiménez
f55a97b738
Rename MouseListener to MouseArea 2023-04-13 06:46:33 +02:00
Héctor Ramón Jiménez
6b359b496c
Avoid cloning messages unnecessarily in MouseListener 2023-04-13 06:44:51 +02:00
Héctor Ramón Jiménez
29971c9d71
Avoid returning on mouse enter in MouseListener
The event that triggers a mouse enter could be a mouse button
press/release.
2023-04-13 06:44:09 +02:00
Héctor Ramón Jiménez
f247528725
Ignore mouse movements events in MouseListener
These should be ignored generally, since they are considered passive
user actions.
2023-04-13 06:34:17 +02:00
Héctor Ramón Jiménez
8bcb68d785
Move tag and state definitions in MouseListener 2023-04-13 06:30:09 +02:00
Héctor Ramón Jiménez
d508ed2637
Remove redundant comments in MouseListener fields 2023-04-13 06:29:24 +02:00
Héctor Ramón Jiménez
28b0f7abf4
Delegate layout directly to content in MouseListener 2023-04-13 06:28:33 +02:00
Michael Aaron Murphy
dfc1868179
feat(native): Add MouseListener widget 2023-04-13 06:19:42 +02:00
Héctor Ramón
cf35c85f8c
Merge pull request #1789 from ElhamAryanpur/master
Update `wgpu` to `0.15`
2023-04-13 06:15:03 +02:00
Héctor Ramón Jiménez
db4b899fd2
Fix Wasm target for integration_wgpu 2023-04-13 06:03:44 +02:00
Héctor Ramón Jiménez
2be79d7b6b
Fix handle position of sliders 2023-04-13 06:02:30 +02:00
Héctor Ramón Jiménez
52c84c4975
Remove border_radius support for slider::Rail
Our current quad shader may produce weird-looking results with
non-integral scaling factors.
2023-04-13 05:53:40 +02:00
Héctor Ramón Jiménez
9410fb9827
Update env_logger in integration_wgpu example 2023-04-13 05:46:18 +02:00
Héctor Ramón Jiménez
b677345ac1
Get surface capabilities only once in iced_wgpu 2023-04-13 05:42:56 +02:00
Elham Aryanpur
d5453c62e9
Update wgpu to 0.15 2023-04-13 05:40:23 +02:00
Héctor Ramón
1de7da1091
Merge pull request #1749 from FinnPerry/fix/add-width-to-scrollable
Configurable `width` for `Scrollable`
2023-04-13 00:03:22 +02:00
Héctor Ramón Jiménez
66939b22b0
Remove max_width and max_height calls in scrollable::layout 2023-04-12 23:40:36 +02:00
Héctor Ramón
3dc76ca948
Merge pull request #1788 from tarkah/optimization/scrollable-publish
Don't publish redundant `on_scroll` offsets
2023-04-12 23:22:09 +02:00
Cory Forsstrom
4125c034f5
Include NaN in unchaged logic 2023-04-12 14:08:18 -07:00
Cory Forsstrom
ee32af2606
Don't publish redundant on_scroll offsets 2023-04-12 14:08:05 -07:00
Héctor Ramón
adb70d232a
Merge pull request #1777 from AirhartAero/linux-window-features
Re-expose winit features for window servers in Linux
2023-04-12 20:57:36 +02:00
Night_Hunter
5a056ce051
add action set icon while running (#1590)
* set windows icon live action

* change get icon to insto raw

* remove mobile docs

* format

* fix format

* add file methods to Icon

* Rename action to `ChangeIcon` and tidy up `Icon` modules

* Fix documentation of `icon::Error`

* Remove unnecessary `\` in `icon` documentation

* Remove `etc.` from `Icon` documentation

---------

Co-authored-by: Héctor Ramón Jiménez <hector0193@gmail.com>
2023-04-12 06:47:53 +00:00