pub enum OverlayEventKind {
Pointer(PointerEvent),
Scroll {
position: Point,
delta: ScrollDelta,
},
Scale {
focal: Point,
phase: ScalePhase,
scale_delta: f64,
velocity: f64,
},
OutsideDown,
Shortcut(ShortcutId),
Key(KeyEvent),
}Expand description
An OverlayEvent’s input, in window space (the owner subtracts its rect origin itself).
InputEvent::translated leaves an Overlay payload unchanged, so it stays in window space.
Variants§
Pointer(PointerEvent)
Scroll
Scale
OutsideDown
A primary press outside every surface (light dismiss), sent only to Notify entries.
Shortcut(ShortcutId)
A shortcut the pod declared; the owner forwards it as InputEvent::Shortcut.
Key(KeyEvent)
A key the focus path declined (see crate::overlay); answer via consume_overlay_key.
Trait Implementations§
Source§impl Clone for OverlayEventKind
impl Clone for OverlayEventKind
Source§impl Debug for OverlayEventKind
impl Debug for OverlayEventKind
Source§impl PartialEq for OverlayEventKind
impl PartialEq for OverlayEventKind
impl StructuralPartialEq for OverlayEventKind
Auto Trait Implementations§
impl Freeze for OverlayEventKind
impl RefUnwindSafe for OverlayEventKind
impl Send for OverlayEventKind
impl Sync for OverlayEventKind
impl Unpin for OverlayEventKind
impl UnsafeUnpin for OverlayEventKind
impl UnwindSafe for OverlayEventKind
Blanket Implementations§
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> StorageAccess<T> for T
impl<T> StorageAccess<T> for T
Source§fn as_borrowed(&self) -> &T
fn as_borrowed(&self) -> &T
Borrows the value.
Source§fn into_taken(self) -> T
fn into_taken(self) -> T
Takes the value.