egui/examples
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
..
confirm_exit Support returning errors when creating the app (#4565) 2024-05-28 21:59:19 +02:00
custom_3d_glow Support returning errors when creating the app (#4565) 2024-05-28 21:59:19 +02:00
custom_font Support returning errors when creating the app (#4565) 2024-05-28 21:59:19 +02:00
custom_font_style Support returning errors when creating the app (#4565) 2024-05-28 21:59:19 +02:00
custom_keypad Support returning errors when creating the app (#4565) 2024-05-28 21:59:19 +02:00
custom_plot_manipulation Support returning errors when creating the app (#4565) 2024-05-28 21:59:19 +02:00
custom_window_frame Support returning errors when creating the app (#4565) 2024-05-28 21:59:19 +02:00
file_dialog Support returning errors when creating the app (#4565) 2024-05-28 21:59:19 +02:00
hello_world Support returning errors when creating the app (#4565) 2024-05-28 21:59:19 +02:00
hello_world_par Support returning errors when creating the app (#4565) 2024-05-28 21:59:19 +02:00
hello_world_simple Replace cargo-cranky with workspace lints (#4413) 2024-04-25 17:24:50 +02:00
images Support returning errors when creating the app (#4565) 2024-05-28 21:59:19 +02:00
keyboard_events Support returning errors when creating the app (#4565) 2024-05-28 21:59:19 +02:00
multiple_viewports Support returning errors when creating the app (#4565) 2024-05-28 21:59:19 +02:00
puffin_profiler Support returning errors when creating the app (#4565) 2024-05-28 21:59:19 +02:00
save_plot Support returning errors when creating the app (#4565) 2024-05-28 21:59:19 +02:00
screenshot Support returning errors when creating the app (#4565) 2024-05-28 21:59:19 +02:00
serial_windows Support returning errors when creating the app (#4565) 2024-05-28 21:59:19 +02:00
user_attention Support returning errors when creating the app (#4565) 2024-05-28 21:59:19 +02:00
README.md examples/README.md: explain that the examples are for master 2023-02-08 20:34:43 +01:00
run_all.sh Fix up some examples (#3614) 2023-11-23 12:58:44 +01:00

README.md

egui and eframe examples

All the examples in this folder uses eframe to set up a window for egui. Some examples are specific to eframe, but many are applicable to any egui integration.

There are a lot more examples at https://www.egui.rs, and it has links to the source code of each example.

Also check out the official docs at https://docs.rs/egui and https://docs.rs/eframe.

Note that all the examples on master are for the latest master version of egui.

If you want to look for examples for a specific version of egui, go to that tag, e.g. https://github.com/emilk/egui/tree/latest/examples.