egui/crates/egui_extras/src
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
..
datepicker Enable more clippy lints (#6853) 2025-04-24 17:32:50 +02:00
loaders Add `ImageLoader::has_pending` and `wait_for_pending_images` (#7030) 2025-05-08 09:27:52 +02:00
image.rs Support SVG Text Rendering in egui_extras (#5979) 2025-04-14 11:13:17 +02:00
layout.rs Enable more clippy lints (#6853) 2025-04-24 17:32:50 +02:00
lib.rs Enable more clippy lints (#6853) 2025-04-24 17:32:50 +02:00
loaders.rs Animated WebP support (#5470) 2024-12-29 11:46:08 +01:00
sizing.rs Add assert messages and print bad argument values in asserts (#5216) 2025-03-25 09:20:29 +01:00
strip.rs Fix some clippy issues found by 1.84.0 (#5603) 2025-01-13 08:29:13 +01:00
syntax_highlighting.rs Enable more clippy lints (#6853) 2025-04-24 17:32:50 +02:00
table.rs `ScrollArea` improvements for user configurability (#5443) 2025-04-25 11:01:22 +02:00