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:
@@ -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),
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user