egui/eframe/examples
Emil Ernerfeldt c768d1d48e
Context::request_repaint will wake up the UI thread (#1366)
This adds a callback (set by `Context::set_request_repaint_callback`)
which integration can use to wake up the UI thread.

eframe (egui_web and egui_glow) will use this, replacing
`epi::Frame::request_repaint`.

Existing code calling `epi::Frame::request_repaint` should be changed
to instead call `egui::Context::request_repaint`.

This is the first callback added to the egui API, which otherwise is
completely driven by data.

The purpose of this is to remove the confusion between the two
`request_repaint` methods (by removing one). Furthermore, it makes
`epi::Frame` a lot simpler, allowing future simplifications to it
(perhaps no longer having it be `Send+Sync+Clone`).
2022-03-15 17:21:52 +01:00
..
confirm_exit.rs eframe: allow aborting an exit event (#1038) 2022-01-17 18:45:09 +01:00
custom_3d.rs Add Shape::Callback to do custom rendering inside of an egui UI (#1351) 2022-03-14 13:25:11 +01:00
custom_font.rs Add Shape::Callback to do custom rendering inside of an egui UI (#1351) 2022-03-14 13:25:11 +01:00
download_image.rs Context::request_repaint will wake up the UI thread (#1366) 2022-03-15 17:21:52 +01:00
file_dialog.rs Choose your own font and size (#1154) 2022-01-24 14:32:36 +01:00
hello_world.rs Misc code cleanup, docs fixes, etc 2022-02-19 20:58:28 +01:00
image.rs Introduce egui_extras with RetainedImage for loading svg,png,jpeg,… (#1282) 2022-02-21 15:26:26 +01:00
rust-logo-256x256.png Improve the frame around ImageButton 2021-09-20 22:37:21 +02:00
rust-logo-license.txt Add example of loading and showing an image with eframe/egui 2021-09-04 17:44:01 +02:00
rustacean-flat-happy.svg Add an example of how to display an SVG image in egui (#1228) 2022-02-09 08:12:12 +01:00
svg.rs Introduce egui_extras with RetainedImage for loading svg,png,jpeg,… (#1282) 2022-02-21 15:26:26 +01:00