egui/examples/multiple_viewports
Emil Ernerfeldt 942fe4ab31
Support returning errors when creating the app (#4565)
The closure passed to `eframe::run_native` now returns a `Result`,
allowing you to return an error during app creation, which will be
returned to the caller of `run_native`.

This means you need to wrap your `Box::new(MyApp::new(…))` in an
`Ok(…)`.

* Closes https://github.com/emilk/egui/issues/4474
2024-05-28 21:59:19 +02:00
..
src Support returning errors when creating the app (#4565) 2024-05-28 21:59:19 +02:00
Cargo.toml Replace cargo-cranky with workspace lints (#4413) 2024-04-25 17:24:50 +02:00
README.md Move test crates to own folder (#4554) 2024-05-27 21:28:33 +02:00

README.md

Example how to show multiple viewports (native windows) can be created in egui when using the eframe backend.

cargo run -p multiple_viewports

For a more advanced example, see [../../tests/test_viewports].