#[non_exhaustive]pub enum DragDropEvent {
Enter {
paths: Vec<PathBuf>,
position: (i32, i32),
},
Over {
position: (i32, i32),
},
Drop {
paths: Vec<PathBuf>,
position: (i32, i32),
},
Leave,
}
Expand description
An event describing drag and drop operations on the webview.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Enter
A drag operation has entered the webview.
Fields
Over
A drag operation is moving over the window.
Drop
The file(s) have been dropped onto the window.
Fields
Leave
The drag operation has been cancelled or left the window.
Trait Implementations§
Source§impl Clone for DragDropEvent
impl Clone for DragDropEvent
Source§fn clone(&self) -> DragDropEvent
fn clone(&self) -> DragDropEvent
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for DragDropEvent
impl RefUnwindSafe for DragDropEvent
impl Send for DragDropEvent
impl Sync for DragDropEvent
impl Unpin for DragDropEvent
impl UnwindSafe for DragDropEvent
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