Commit graph

3073 commits

Author SHA1 Message Date
Héctor Ramón Jiménez
238154af4a
Implement font::load command in iced_native 2023-02-24 13:29:11 +01:00
Héctor Ramón Jiménez
b29de28d1f
Overhaul Font type to allow font family selection 2023-02-24 13:28:24 +01:00
Héctor Ramón Jiménez
a7580e0696
Count layout_runs instead of using visible_lines in text::Pipeline::prepare 2023-02-24 13:22:58 +01:00
Héctor Ramón Jiménez
0a324f0aeb
Implement hit_test for text::Pipeline in iced_wgpu 2023-02-24 13:22:58 +01:00
Héctor Ramón Jiménez
c8e8b1a7ba
Use bounds directly for measure in text pipeline 2023-02-24 13:22:58 +01:00
Héctor Ramón Jiménez
6b70771146
Avoid unnecessary Vec allocation in text pipeline 2023-02-24 13:22:58 +01:00
Héctor Ramón Jiménez
02fc7e6e89
Trim text render_cache after rendering in iced_wgpu 2023-02-24 13:22:58 +01:00
Héctor Ramón Jiménez
1d0c44fb25
Implement basic text caching in iced_wgpu 2023-02-24 13:22:57 +01:00
Héctor Ramón Jiménez
032e860f13
Fix PickList line height 2023-02-24 13:22:56 +01:00
Héctor Ramón Jiménez
bb27982009
Convert sRGB to linear RGB for text in iced_wgpu 2023-02-24 13:20:55 +01:00
Héctor Ramón Jiménez
c68edb3278
Fix TextInput line height 2023-02-24 13:20:54 +01:00
Héctor Ramón Jiménez
98a16fd670
Implement proper text alignment support in iced_wgpu 2023-02-24 13:19:49 +01:00
Héctor Ramón Jiménez
ba258f8fbc
Implement support for multiple text layers in iced_wgpu 2023-02-24 13:19:49 +01:00
Héctor Ramón Jiménez
baf51a8fcf
Draft glyphon implementation of text pipeline for iced_wgpu 2023-02-24 13:19:48 +01:00
Héctor Ramón Jiménez
b9a9576207
Remove iced_glow, glyph-brush, and wgpu_glyph dependencies 2023-02-24 13:17:58 +01:00
Héctor Ramón
573d27eb52
Merge pull request #1731 from tarkah/fix/debug-bytes
Remove logging large bytes arrays
2023-02-23 19:38:43 +01:00
Cory Forsstrom
07a7681dba
Remove logging large bytes arrays 2023-02-23 09:31:48 -08:00
Héctor Ramón
666f3cd143
Merge pull request #1723 from iced-rs/subscription-run
Change `subscription::run` to take a function pointer
2023-02-21 21:18:01 +01:00
Héctor Ramón Jiménez
1fb413fd80
Change subscription::run to take a function pointer
... and rename the old `run` to `run_with_id`.
2023-02-21 20:56:10 +01:00
Héctor Ramón
8c83d40e11
Merge pull request #1721 from casperstorm/feat/no-bleed-slider
Sliders no longer bleed over rail
2023-02-20 14:54:54 +01:00
Casper Storm
96c0bd65df
Sliders no longer bleed over rail 2023-02-20 12:24:31 +01:00
Héctor Ramón Jiménez
2b8742937f
Bump version of iced_native 🎉 2023-02-18 22:16:44 +01:00
Héctor Ramón
1b79df4433
Merge pull request #1717 from iced-rs/remove-clone-image-bytes
Remove `Clone` bound for `Bytes::new` in `image`
2023-02-18 22:15:11 +01:00
Héctor Ramón
f0decca8bc
Merge pull request #1716 from iced-rs/fix/draw-base-cursor
Fix base cursor position during `UserInterface::draw` when overlay is present
2023-02-18 22:05:31 +01:00
Héctor Ramón Jiménez
bf061a0d62
Remove Clone bound for Bytes::new in image 2023-02-18 21:55:49 +01:00
Héctor Ramón Jiménez
3d8f1ad238
Fix base cursor position during UserInterface::draw when overlay is present 2023-02-18 21:52:08 +01:00
Héctor Ramón Jiménez
0d1656937b
Bump versions 🎉 2023-02-18 12:04:40 +01:00
Héctor Ramón
c6218cbc55
Merge pull request #1714 from iced-rs/fix/overlay-menu-height
Fix height of `overlay::Menu`
2023-02-18 09:00:44 +01:00
Héctor Ramón Jiménez
ffcd4f1bec
Fix height of overlay::Menu 2023-02-18 08:45:54 +01:00
Héctor Ramón
7dc1fb488d
Merge pull request #1711 from iced-rs/feature/generic-pixel-units
Generic pixel units
2023-02-17 16:53:02 +01:00
Héctor Ramón Jiménez
fd14086933
Use Pixels for padding in image::Viewer 2023-02-17 16:24:37 +01:00
Héctor Ramón Jiménez
a467a037c3
Use Pixels for spacing 2023-02-17 16:23:29 +01:00
Héctor Ramón Jiménez
fd3a141024
Use f32 for Icon::size in checkbox 2023-02-17 16:18:27 +01:00
Héctor Ramón Jiménez
3320ac1126
Use f32 for Padding 2023-02-17 16:09:49 +01:00
Héctor Ramón Jiménez
0872d078e2
Use Pixels for size methods 2023-02-17 15:56:19 +01:00
Héctor Ramón Jiménez
67e3da5669
Use Pixels for Slider::height and VerticalSlider::width 2023-02-17 15:55:12 +01:00
Héctor Ramón Jiménez
70483e7fdd
Fix Scrollbar bound calculations in Scrollable 2023-02-17 15:48:35 +01:00
Héctor Ramón Jiménez
570600ce51
Use Pixels for Text::size 2023-02-17 15:47:51 +01:00
Héctor Ramón Jiménez
7b8b01f560
Use f32 in Length::Units and rename it to Fixed 2023-02-17 15:40:17 +01:00
Héctor Ramón
f75e020257
Merge pull request #1551 from sdroege/image-data-refcounting
image: Allow any kind of data that implements `AsRef<[u8]>` for the i…
2023-02-17 14:50:45 +01:00
Héctor Ramón Jiménez
d7c83080f2
Wrap image Bytes with Arc instead of Data 2023-02-17 14:37:15 +01:00
Sebastian Dröge
d2996f3ed8
image: Allow any kind of data that implements AsRef<[u8]> for the image data
It's not required anywhere for it to be a plain slice or a `Vec` and
this makes it possible to use data allocated in a different way without
copying.
2023-02-17 14:23:13 +01:00
Héctor Ramón
27ba0be783
Merge pull request #1665 from Jedsek/patch-2
Minor update: `example/qr_code`
2023-02-17 14:12:56 +01:00
Héctor Ramón
c2a5f05924
Merge pull request #1589 from Night-Hunter-NF/FetchWindowId
add action to get window id
2023-02-17 14:10:08 +01:00
Héctor Ramón Jiménez
ac1945404e
Run cargo fmt 2023-02-17 13:57:04 +01:00
Héctor Ramón Jiménez
2c2421ae5d
Expose fetch_id helper in window module 2023-02-17 13:47:46 +01:00
Night_Hunter
9f75f01ddb
add action to get window id 2023-02-17 13:45:51 +01:00
Héctor Ramón
b9b0a9a1f4
Merge pull request #1587 from Night-Hunter-NF/AlwaysOnTop
add always on top action
2023-02-17 13:39:58 +01:00
Héctor Ramón Jiménez
db65c6904d
Expose change_always_on_top helper in window module 2023-02-17 13:24:46 +01:00
Héctor Ramón Jiménez
df861d9ece
Rename SetAlwaysOnTop to ChangeAlwaysOnTop 2023-02-17 13:22:45 +01:00