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
Héctor Ramón Jiménez
2eea9b81e4
Exit runtime with control_sender instead of break
2024-07-24 10:34:24 +02:00
Héctor Ramón Jiménez
1c1bee6fd8
Finish window::open only when window fully opens
...
... and run initial `Task` after `window::open` for
applications. This fixes certain race conditions.
2024-07-11 10:44:44 +02:00
Héctor Ramón Jiménez
8c110c1be9
Make window visible after surface creation in iced_winit
2024-07-11 10:21:45 +02:00
Héctor Ramón Jiménez
8bc49cd886
Hide Subscription internals
...
.. and introduce `stream::channel` helper
2024-07-05 02:16:45 +02:00
Héctor Ramón Jiménez
88611d7653
Hide internal Task constructors
2024-07-05 01:13:28 +02:00
Héctor Ramón Jiménez
e8b1e5a112
Fix fonts not being loaded at startup
2024-06-21 15:38:51 +02:00
Héctor Ramón Jiménez
50dd2a6cc0
Fix application sometimes exiting at startup
2024-06-20 22:28:28 +02:00
Héctor Ramón Jiménez
92e08c8f07
Add get_latest and get_oldest tasks in window
2024-06-20 01:13:09 +02:00
Héctor Ramón Jiménez
65c8e08b44
Fix initialization race conditions in WebAssembly
...
WebGL is still broken, but oh well... Time to move on.
2024-06-19 19:07:07 +02:00
Héctor Ramón Jiménez
5f25943449
Fix WebAssembly compilation
...
Rendering seems to still not work, however.
2024-06-19 17:39:17 +02:00
Héctor Ramón Jiménez
341c9a3c12
Introduce daemon API and unify shell runtimes
2024-06-19 01:53:40 +02:00