egui/examples/serial_windows
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 Update serial window example (#2756) 2023-03-29 15:55:45 +02:00
screenshot.png Update example screenshots 2023-05-23 13:38:02 +02:00

README.md

Demonstrates how to open several windows after each other.

Expected order of execution:

  • When the example runs a first window will be shown.
  • Once the first window is closed after a delay a second window will be shown.
  • Similarly, when the second window is closed after a delay a third will be shown.
  • Once the third is closed the program will stop.

NOTE: this doesn't work on Mac due to https://github.com/rust-windowing/winit/issues/2431. See also https://github.com/emilk/egui/issues/1918.

cargo run -p serial_windows