egui/examples
rustbasic d3ea90f5ef
Fix dragging of `custom_window_frame` on Windows (#4592)
Fix: example `custom_window_frame`

Sending `ViewportCommand::StartDrag` when the secondary button is
clicked in Windows will disable drag, and drag will not be possible with
the primary button afterwards.

So in the example `custom_window_frame`, modified to use
`dragged_by(PointerButton::Primary)` instead of
`is_pointer_button_down_on()`.
2024-05-31 15:22:46 +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 Fix dragging of `custom_window_frame` on Windows (#4592) 2024-05-31 15:22:46 +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 Replace some `...` with `…` 2024-05-29 11:48:50 +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.