pub enum DndEvent {
Enter {
surface_id: u32,
x: i32,
y: i32,
},
Leave {
surface_id: u32,
},
Motion {
surface_id: u32,
x: i32,
y: i32,
},
Drop {
surface_id: u32,
x: i32,
y: i32,
},
Cancelled,
}Expand description
Events emitted by the DnD subsystem.
Variants§
Enter
Drag entered a surface.
Leave
Drag left a surface.
Fields
§
surface_id: u32Motion
Drag moved within a surface.
Drop
Drop occurred on a surface.
Cancelled
Drag was cancelled.
Trait Implementations§
impl Copy for DndEvent
impl Eq for DndEvent
impl StructuralPartialEq for DndEvent
Auto Trait Implementations§
impl Freeze for DndEvent
impl RefUnwindSafe for DndEvent
impl Send for DndEvent
impl Sync for DndEvent
impl Unpin for DndEvent
impl UnwindSafe for DndEvent
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)