pub enum BackendDragEvent {
Move {
event: DropEvent,
allowed: AllowedDragActions,
},
Drop {
event: DropEvent,
allowed: AllowedDragActions,
},
Leave,
}Expand description
The drag and drop events a backend can deliver, through WindowInner::process_drag_event.
Variants§
Move
A drag is hovering over the window.
Drop
A drag was released over the window.
Leave
A drag left the window, or was cancelled while hovering over it.
Trait Implementations§
Source§impl Clone for BackendDragEvent
impl Clone for BackendDragEvent
Source§fn clone(&self) -> BackendDragEvent
fn clone(&self) -> BackendDragEvent
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 moreSource§impl Debug for BackendDragEvent
impl Debug for BackendDragEvent
Source§impl From<BackendDragEvent> for MouseEvent
impl From<BackendDragEvent> for MouseEvent
Source§fn from(event: BackendDragEvent) -> Self
fn from(event: BackendDragEvent) -> Self
Converts to this type from the input type.
Source§impl PartialEq for BackendDragEvent
impl PartialEq for BackendDragEvent
impl StructuralPartialEq for BackendDragEvent
Auto Trait Implementations§
impl !RefUnwindSafe for BackendDragEvent
impl !Send for BackendDragEvent
impl !Sync for BackendDragEvent
impl !UnwindSafe for BackendDragEvent
impl Freeze for BackendDragEvent
impl Unpin for BackendDragEvent
impl UnsafeUnpin for BackendDragEvent
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