egui/crates
Lucas Meurer 120d736cfc
Add `ImageLoader::has_pending` and `wait_for_pending_images` (#7030)
With kittest it was difficult to wait for images to be loaded before
taking a snapshot test.
This PR adds `Harness::with_wait_for_pending_images` (true by default)
which will cause `Harness::run` to sleep until all images are loaded (or
`HarnessBuilder::with_max_steps` is exceeded).

It also adds a new ImageLoader::has_pending and
BytesLoader::has_pending, which should be implemented if things are
loaded / decoded asynchronously.

It reverts https://github.com/emilk/egui/pull/6901 which was my previous
attempt to fix this (but this didn't work since only the tested crate is
compiled with cfg(test) and not it's dependencies)
2025-05-08 09:27:52 +02:00
..
ecolor Enable more clippy lints (#6853) 2025-04-24 17:32:50 +02:00
eframe Rename `master` branch to `main` (#7034) 2025-05-08 09:15:42 +02:00
egui Add `ImageLoader::has_pending` and `wait_for_pending_images` (#7030) 2025-05-08 09:27:52 +02:00
egui-wgpu Rename `master` branch to `main` (#7034) 2025-05-08 09:15:42 +02:00
egui-winit Rename `master` branch to `main` (#7034) 2025-05-08 09:15:42 +02:00
egui_demo_app Rename `master` branch to `main` (#7034) 2025-05-08 09:15:42 +02:00
egui_demo_lib Rename `master` branch to `main` (#7034) 2025-05-08 09:15:42 +02:00
egui_extras Add `ImageLoader::has_pending` and `wait_for_pending_images` (#7030) 2025-05-08 09:27:52 +02:00
egui_glow Rename `master` branch to `main` (#7034) 2025-05-08 09:15:42 +02:00
egui_kittest Add `ImageLoader::has_pending` and `wait_for_pending_images` (#7030) 2025-05-08 09:27:52 +02:00
egui_plot Move `egui_plot` to its own repo (#4828) 2024-07-15 18:45:19 +02:00
egui_web Rename `master` branch to `main` (#7034) 2025-05-08 09:15:42 +02:00
emath Rename `master` branch to `main` (#7034) 2025-05-08 09:15:42 +02:00
epaint Rename `master` branch to `main` (#7034) 2025-05-08 09:15:42 +02:00
epaint_default_fonts Rename `master` branch to `main` (#7034) 2025-05-08 09:15:42 +02:00