mirror of
https://github.com/emilk/egui.git
synced 2026-06-27 15:13:12 -04:00
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
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].