pub struct OverlayEvent {
pub key: OverlayKey,
pub kind: OverlayEventKind,
}Expand description
What an InputEvent::Overlay carries into a floated surface.
The key names the surface’s owner (see OverlayKey); the kind is the input
itself, always in absolute window space rather than in anyone’s local
space — see OverlayEventKind.
Fields§
§key: OverlayKeyThe owner whose registered surface the root hit. Every other widget in the tree sees this broadcast and must ignore it.
kind: OverlayEventKindWhat happened.
Trait Implementations§
Source§impl Clone for OverlayEvent
impl Clone for OverlayEvent
Source§impl Debug for OverlayEvent
impl Debug for OverlayEvent
Source§impl PartialEq for OverlayEvent
impl PartialEq for OverlayEvent
impl StructuralPartialEq for OverlayEvent
Auto Trait Implementations§
impl Freeze for OverlayEvent
impl RefUnwindSafe for OverlayEvent
impl Send for OverlayEvent
impl Sync for OverlayEvent
impl Unpin for OverlayEvent
impl UnsafeUnpin for OverlayEvent
impl UnwindSafe for OverlayEvent
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.