pub enum DndEvent<'a> {
Enter {
offer: Option<&'a DataOffer>,
serial: u32,
surface: WlSurface,
x: f64,
y: f64,
},
Motion {
offer: Option<&'a DataOffer>,
time: u32,
x: f64,
y: f64,
},
Leave,
Drop {
offer: Option<&'a DataOffer>,
},
}
Expand description
Possible events generated during a drag’n’drop session
Variants§
Enter
Fields
A new drag’n’drop entered your surfaces
Motion
Fields
The drag’n’drop offer moved on the surface
Leave
The drag’n’drop offer left your surface
Drop
Fields
The drag’n’drop was dropped on your surface
Trait Implementations§
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for DndEvent<'a>
impl<'a> Send for DndEvent<'a>
impl<'a> Sync for DndEvent<'a>
impl<'a> Unpin for DndEvent<'a>
impl<'a> !UnwindSafe for DndEvent<'a>
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