Commit graph

4823 commits

Author SHA1 Message Date
Héctor Ramón Jiménez
e770804435
Bind beacon server only once 2024-05-12 13:43:39 +02:00
Héctor Ramón Jiménez
b7c65c877d
Toggle the Comet when pressing F12 2024-05-11 14:17:14 +02:00
Héctor Ramón Jiménez
fc53a97831
Merge branch 'window/specific-with-position' into beacon 2024-05-10 22:17:29 +02:00
Héctor Ramón Jiménez
b19e95fa18
Add SpecificWith variant to window::Position 2024-05-10 22:16:35 +02:00
Héctor Ramón Jiménez
57033dc4d0
Rename iced_sentinel to iced_beacon and refactor its API 2024-05-10 20:08:09 +02:00
Héctor Ramón Jiménez
aaf396256e
Merge branch 'master' into beacon 2024-05-09 12:32:25 +02:00
Héctor Ramón Jiménez
718fe5b7de
Pass WindowHandle by value to window::run_with_handle 2024-05-08 23:14:37 +02:00
Héctor Ramón Jiménez
7e7af91e6f
Fix clippy lints in wgpu benchmark 2024-05-08 20:34:31 +02:00
Héctor Ramón Jiménez
fb5f1ba0bc
Create dynamic text wgpu benchmark 2024-05-08 20:29:27 +02:00
Héctor Ramón
f1beb56a9a
Merge pull request #2430 from iced-rs/reuse-glyphon-pipeline-state
Reuse `glyphon::Pipeline` state in `iced_wgpu`
2024-05-08 19:43:07 +02:00
Héctor Ramón Jiménez
99c1464cc1
Update glyphon fork to a cleaner branch 2024-05-08 19:34:43 +02:00
Héctor Ramón Jiménez
bed53f8143
Reuse glyphon::Viewport explicitly 2024-05-08 13:41:12 +02:00
Héctor Ramón Jiménez
447f3a2d14
Reuse glyphon::Pipeline state in iced_wgpu 2024-05-08 12:29:17 +02:00
Héctor Ramón
e07b42ac96
Merge pull request #2427 from iced-rs/winit-0.30
Update `winit` to `0.30`
2024-05-08 09:23:53 +02:00
Héctor Ramón Jiménez
247870f83b
Redirect docs.iced.rs to actual docs 2024-05-07 21:38:31 +02:00
Héctor Ramón
18b2f8845e
Merge pull request #2428 from iced-rs/feature/present-mode-env-var
Introduce `ICED_PRESENT_MODE` env var to pick a `wgpu::PresentMode`
2024-05-07 21:22:29 +02:00
Héctor Ramón Jiménez
5b6f3499e1
Document present_mode_from_env in iced_wgpu 2024-05-07 21:13:51 +02:00
Héctor Ramón Jiménez
8a0701a0d9
Introduce ICED_PRESENT_MODE env var to pick a wgpu::PresentMode 2024-05-07 21:05:29 +02:00
Héctor Ramón Jiménez
7e7285d60f
Plug new_events handler to event loop 2024-05-07 17:00:55 +02:00
Héctor Ramón Jiménez
2645524f88
Update winit to 0.30 2024-05-07 16:07:56 +02:00
Héctor Ramón
db07b9ba9e
Merge pull request #2425 from iced-rs/fix/image-cache-fighting
Fix windows fighting over shared `image::Cache`
2024-05-06 13:02:57 +02:00
Héctor Ramón Jiménez
ea64e4f63a
Trim image::Cache after wgpu::Renderer::present 2024-05-06 12:23:44 +02:00
Héctor Ramón Jiménez
547446f0de
Fix windows fighting over shared image::Cache
Image caches are local to each window now.
2024-05-06 12:23:44 +02:00
Héctor Ramón
a94984d681
Merge pull request #2424 from iced-rs/feature/image-opacity
Introduce dynamic `opacity` support for `Image` and `Svg`
2024-05-03 13:51:57 +02:00
Héctor Ramón Jiménez
afb4cb99b9
Improve layout of ferris example 🦀 2024-05-03 13:32:51 +02:00
Héctor Ramón Jiménez
fa9e1d96ea
Introduce dynamic opacity support for Image and Svg 2024-05-03 13:25:58 +02:00
Héctor Ramón
38cf87cb45
Merge pull request #2423 from iced-rs/center-widget-helper
Introduce `center` widget helper
2024-05-03 09:34:28 +02:00
Héctor Ramón Jiménez
4c658c41e9
Auto-focus text_input in websocket example 2024-05-03 09:25:47 +02:00
Héctor Ramón Jiménez
15057a05c1
Introduce center widget helper
... and also make `center_x` and `center_y` set
`width` and `height` to `Length::Fill`, respectively.

This targets the most common use case when centering
things and removes a bunch of boilerplate as a result.
2024-05-03 09:11:46 +02:00
Héctor Ramón
1cefe6be21
Merge pull request #2334 from DKolter/image-rotation
Adding feature: Image rotation
2024-05-03 07:31:34 +02:00
Héctor Ramón Jiménez
4010e3983d
Add spin mode to ferris example 🦀 2024-05-03 07:23:55 +02:00
Héctor Ramón Jiménez
eac5bcb64f
Fix Image::bounds when rotation present in iced_graphics 2024-05-03 07:04:57 +02:00
Héctor Ramón
fe240a93aa
Merge pull request #2420 from myuujiku/master
Fix: grabbing `image::Viewer` from outside the widget
2024-05-03 04:43:57 +02:00
myuujiku
8efd32c51b Apply bounds check when grabbing image::Viewer 2024-05-02 21:18:47 +02:00
Héctor Ramón Jiménez
568ac66486
Remove commented code in tiny_skia::layer 2024-05-02 17:28:29 +02:00
Héctor Ramón Jiménez
efc55b655b
Create ferris example to showcase ContentFit and Rotation 2024-05-02 17:28:29 +02:00
Héctor Ramón Jiménez
610394b695
Rename global_scale to scale in wgpu::image 2024-05-02 17:28:28 +02:00
Héctor Ramón Jiménez
a57313b23e
Simplify image rotation API and its internals 2024-05-02 17:28:28 +02:00
Héctor Ramón Jiménez
09a6bcfffc
Add Image rotation support
Co-authored-by: DKolter <68352124+DKolter@users.noreply.github.com>
2024-05-02 17:27:45 +02:00
Héctor Ramón Jiménez
aae8e4f5cf
Fix clippy lints for new 1.78 stable toolchain 2024-05-02 17:23:32 +02:00
Héctor Ramón Jiménez
ffa6614026
Fix panic in wgpu::color::convert 2024-05-02 08:44:44 +02:00
Héctor Ramón
72b78a9a8d
Merge pull request #2412 from JL710/patch-1
add missing derive(Debug) in lib.rs docs
2024-05-02 06:40:52 +02:00
Héctor Ramón Jiménez
e2aee80aa1
Introduce layered_text benchmarks 2024-05-01 15:39:44 +02:00
Héctor Ramón
a11784f9ed
Merge pull request #2356 from Bajix/feature/bytes
Utilize bytes::Bytes for images
2024-05-01 06:57:38 +02:00
Héctor Ramón Jiménez
01b014c19f
Fix documentation link in image::Handle 2024-05-01 01:53:25 +02:00
Héctor Ramón Jiménez
58ea914ad2
Make image::Id actually opaque 2024-05-01 01:52:49 +02:00
Héctor Ramón Jiménez
b52c7bb610
Use an opaque Id type for image::Handle
Hashing pointers is a terrible idea.
2024-05-01 01:39:43 +02:00
Héctor Ramón Jiménez
f5bc336d69
Fix clippy lint in runtime:🪟:screenshot 2024-05-01 01:09:31 +02:00
Héctor Ramón Jiménez
45254ab88c
Use Bytes as the Container of ImageBuffer
Since we don't need to mutate images once loaded,
we avoid unnecessary extra allocations.
2024-05-01 00:55:49 +02:00
Thomas Sieverding
7c084d9695
Utilize bytes::Bytes iced_runtime:🪟:Screenshot 2024-05-01 00:28:55 +02:00