Commit graph

61 commits

Author SHA1 Message Date
Héctor Ramón Jiménez
57cb14ce38
Remove Executor::block_on and simplify Compositor creation 2025-04-02 11:01:11 +02:00
edwloef
baadcc150f
don't use futures-executor when it's not the default executor 2025-04-02 10:48:11 +02:00
Héctor Ramón Jiménez
576dd22733
Split local state from Engine in iced_wgpu 2025-03-24 20:22:15 +01:00
Héctor Ramón Jiménez
9c1edc3d78
Downgrade presentation error! to warn! in iced_winit 2025-03-19 19:23:35 +01:00
Héctor Ramón Jiménez
31b98ee3eb
Notify window before presentation 2025-03-18 18:29:19 +01:00
Héctor Ramón Jiménez
cf2b28fd74
Free proxy slots unconditionally in AboutToWait 2025-02-26 13:28:03 +01:00
Héctor Ramón Jiménez
9ceb467e6e
Run cargo fmt 2025-02-21 01:37:13 +01:00
Héctor Ramón Jiménez
cc8b326dfc
Fix priority of redraw requests in winit shell 2025-02-14 19:34:11 +01:00
Héctor Ramón Jiménez
ba755c69d6
Fulfill InputMethod requests only during RedrawRequested 2025-02-03 03:34:41 +01:00
Héctor Ramón Jiménez
ae10adda74
Refactor and simplify input_method API 2025-02-02 20:45:29 +01:00
KENZ
7db5256b72
Draft input_method support 2025-02-02 17:44:13 +01:00
Héctor Ramón Jiménez
57b553de2f
Fix infinite runtime loop when queue redraws at a specific time 2025-02-02 02:28:04 +01:00
tsuza
e3f149d932
feat: add a window drag resize task 2025-01-16 11:17:00 +00:00
Héctor
bca293db2a
Merge pull request #2722 from iced-rs/fix/lazy-compositor-initialization
Initialize `Compositor` lazily in `winit` shell
2025-01-14 11:32:38 +00:00
Héctor Ramón Jiménez
8b3b554de2
Panic instead of erroring when compositor channel unexpectedly closes 2025-01-14 11:18:08 +00:00
Héctor Ramón Jiménez
5b70754809
Rename window::change_* tasks to set_* 2025-01-06 23:25:57 +01:00
Héctor Ramón Jiménez
ed199e5e8f
Fix unintuitive variable name in winit::program 2025-01-06 23:24:12 +01:00
Héctor Ramón Jiménez
91fd6d395f
Remove window::change_title since it's redundant
Applications can change title declaratively.
2025-01-06 23:20:51 +01:00
JL710
00b60d819b
window task for setting resize increments 2025-01-06 23:20:51 +01:00
JL710
f5f075e5cd
window resizable task 2025-01-06 23:20:51 +01:00
JL710
8ebbfa9767
window tasks for setting min and max size 2025-01-06 23:20:51 +01:00
JL710
ca8aaf9b8d
add Task and Action for changing a window title 2025-01-06 23:20:51 +01:00
Héctor Ramón Jiménez
2086fc0d6b
Simplify type annotations in winit::program 2025-01-06 22:48:09 +01:00
Héctor Ramón Jiménez
6daba88029
Initialize Compositor lazily in winit shell
... and get rid of the ghost boot window!
2025-01-06 22:37:42 +01:00
Héctor Ramón Jiménez
a0acaba866
Use "outer" positions in all window-related operations 2025-01-06 20:13:51 +01:00
Héctor Ramón Jiménez
1aeb317f2d
Add image and hash snapshot-based testing to iced_test 2024-12-10 04:51:08 +01:00
Ian Douglas Scott
3fc57b7d95 Remove surface argument of Compositor::screenshot
This argument was completely ignored by the wgpu renderer, and used only
for the `clip_mask` by the `tiny_skia` renderer. I believe creating a
new clip mask is correct.

This way it's possible to render offscreen without needing a surface.
2024-11-21 16:26:17 -08:00
Héctor Ramón Jiménez
14ec330730
Replace reactive-rendering feature with unconditional-rendering 2024-11-05 23:52:59 +01:00
Héctor Ramón Jiménez
c6af79a1d0
Fix deferred layout on resize after drawing 2024-11-05 23:52:58 +01:00
Héctor Ramón Jiménez
7908b6eba9
Request a redraw when a window is resized
If we do not request it, macOS does not get any
`RedrawRequested` events. Shouldn't `winit`
[take care of this]? Probably a bug.

[take care of this]: https://docs.rs/winit/0.30.5/winit/event/enum.WindowEvent.html#variant.RedrawRequested
2024-11-05 23:52:57 +01:00
Héctor Ramón Jiménez
52490397d6
Implement reactive-rendering for text_input
... and fix the redraw queue logic in `iced_winit`.
2024-11-05 23:52:56 +01:00
Héctor Ramón Jiménez
3ba7c71e3f
Implement reactive-rendering for slider 2024-11-05 23:52:56 +01:00
Héctor Ramón Jiménez
97bcca0400
Remove TODO about reactive rendering in iced_winit 2024-11-05 23:52:56 +01:00
Héctor Ramón Jiménez
5c33ce18ed
Draft reactive-rendering feature for button 2024-11-05 23:52:56 +01:00
Jindřich Moravec
cadc054651
Disable drag_and_drop attribute for boot window 2024-09-14 00:21:51 +02:00
Richard
d46f6f92ce
Fix wasm32 deployments not displaying anything (#2574)
* reuse `canvas` element generated by dummy window

* fix formatting

* set `control_flow` to `Poll` in `resumed`

this is mostly a fix for Chrome

* Avoid blowing up memory when booting up on Wasm

---------

Co-authored-by: Héctor Ramón Jiménez <hector@hecrj.dev>
2024-09-13 22:15:15 +00:00
Héctor Ramón Jiménez
c66355f289
Enter Runtime when calling Program::subscription 2024-09-13 01:48:15 +02:00
Héctor Ramón Jiménez
64ec099a9b
Add mouse passthrough tasks to window module
Co-authored-by: Jose Quesada <jquesada2016@fau.edu>
2024-09-05 11:13:37 +02:00
Héctor Ramón Jiménez
9628dc20d5
Reconnect Clipboard on window close
Fixes #2564
2024-09-03 11:23:54 +02:00
Héctor Ramón Jiménez
0dcec519be
Add get_scale_factor task to window module 2024-08-30 13:02:49 +02:00
Héctor Ramón Jiménez
9b99b932bc
Produce window::Event::Closed only if window exists 2024-08-15 02:11:17 +02:00
Héctor Ramón Jiménez
7c2abc9b8b
Fix crash when application boots from a URL event in macOS 2024-08-15 01:52:45 +02:00
Héctor Ramón Jiménez
8b45d620d0
Revert window::close producing a window::Id
Instead, subscribing to `window::close_events` is
preferable; since most use cases will want to react
to the user closing a window as well.
2024-08-12 05:50:22 +02:00
Héctor Ramón Jiménez
22fc5ce0ea
Produce window::Event::Closed on window::close 2024-08-12 05:20:44 +02:00
Héctor Ramón Jiménez
01aa84e41a
Make window::close return and introduce Task::discard 2024-08-12 05:12:42 +02:00
Maja Kądziołka
f92e01e913
iced_winit: drop Clipboard before Window
Fixes #2482, avoids nasal daemons
2024-08-11 22:33:17 +02:00
Héctor Ramón Jiménez
169667ef1b
Plug received_url in winit::program 2024-08-01 19:25:02 +02:00
Héctor Ramón Jiménez
fd593f8fb0
Return window::Id in window::open 2024-07-30 22:26:55 +02:00
Héctor Ramón Jiménez
10f367a313
Avoid exiting when a window is being opened
Fixes #2532
2024-07-30 00:51:46 +02:00
Héctor Ramón Jiménez
a5b1a1df54
Fix macOS race condition when closing window 2024-07-24 12:18:53 +02:00