egui/crates/egui_demo_lib
lucasmerlin ad14bf2490
Add `Harness::new_ui`, `Harness::fit_contents` (#5301)
This adds a `Harness::new_ui`, which accepts a Ui closure and shows the
ui in a central panel. One big benefit is that this allows us to add a
fit_contents method that can run the ui closure with a sizing pass and
resize the "screen" based on the content size.

I also used this to add a snapshot test for the rendering_test at
different scales.
2024-11-01 18:30:40 +01:00
..
benches Add `Context::request_discard` (#5059) 2024-09-13 14:20:51 +02:00
data Move all existing .png images to git LGS (#5320) 2024-10-29 10:04:07 +01:00
src Add `Harness::new_ui`, `Harness::fit_contents` (#5301) 2024-11-01 18:30:40 +01:00
tests/snapshots Add `Harness::new_ui`, `Harness::fit_contents` (#5301) 2024-11-01 18:30:40 +01:00
Cargo.toml Add egui testing library (#5166) 2024-10-22 12:39:00 +02:00
README.md Move all crates into a `crates` directory (#1940) 2022-08-20 10:41:49 +02:00

README.md

egui demo library

Latest version Documentation unsafe forbidden MIT Apache

This crate contains example code for egui.

The demo library is a separate crate for three reasons: