#[non_exhaustive]pub enum PlatformEvent {
TrayActivated,
Key(NavKey),
Dismissed,
}Expand description
A platform UI event surfaced by the per-OS event loop, normalized so the engine never sees a toolkit- or OS-specific event type.
The per-OS backend translates native events (an AppKit status-item click, a
Win32 tray callback, …) into this vocabulary on the UI thread. Keyboard input
is carried as an already-translated NavKey so the engine’s pure
keynav state machine can consume it directly.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
TrayActivated
The tray icon was activated (clicked); the engine toggles the popup.
Key(NavKey)
A navigation key was pressed while a muri popup held focus.
Dismissed
Every muri window lost focus; the engine dismisses the popup stack.
Trait Implementations§
Source§impl Clone for PlatformEvent
impl Clone for PlatformEvent
Source§fn clone(&self) -> PlatformEvent
fn clone(&self) -> PlatformEvent
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for PlatformEvent
Source§impl Debug for PlatformEvent
impl Debug for PlatformEvent
impl Eq for PlatformEvent
Source§impl PartialEq for PlatformEvent
impl PartialEq for PlatformEvent
impl StructuralPartialEq for PlatformEvent
Auto Trait Implementations§
impl Freeze for PlatformEvent
impl RefUnwindSafe for PlatformEvent
impl Send for PlatformEvent
impl Sync for PlatformEvent
impl Unpin for PlatformEvent
impl UnsafeUnpin for PlatformEvent
impl UnwindSafe for PlatformEvent
Blanket Implementations§
impl<T> AutoreleaseSafe for Twhere
T: ?Sized,
impl<T> AutoreleaseSafe for Twhere
T: ?Sized,
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more