1
0
mirror of https://github.com/emilk/egui.git synced 2026-08-30 13:20:05 -04:00

Merge branch 'master' of https://github.com/emilk/egui into multiples_viewports

This commit is contained in:
Konkitoman
2023-09-04 13:39:08 +03:00
18 changed files with 92 additions and 89 deletions

View File

@@ -36,16 +36,22 @@ thread_local! {
// ----------------------------------------------------------------------------
/// The custom even `eframe` uses with the [`winit`] event loop.
#[derive(Debug)]
pub enum UserEvent {
/// A repaint is requested.
RequestRepaint {
/// What to repaint.
id: ViewportId,
/// When to repaint.
when: Instant,
/// What the frame number was when the repaint was _requested_.
frame_nr: u64,
},
/// A request related to [`accesskit`](https://accesskit.dev/).
#[cfg(feature = "accesskit")]
AccessKitActionRequest(accesskit_winit::ActionRequestEvent),
}