#[non_exhaustive]pub enum DragDropEvent {
Enter {
paths: Vec<PathBuf>,
position: PhysicalPosition<f64>,
},
Over {
position: PhysicalPosition<f64>,
},
Drop {
paths: Vec<PathBuf>,
position: PhysicalPosition<f64>,
},
Leave,
}
Expand description
The drag drop event payload.
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
§
position: PhysicalPosition<f64>
The position of the mouse cursor.
Over
A drag operation is moving over the webview.
Fields
§
position: PhysicalPosition<f64>
The position of the mouse cursor.
Drop
The file(s) have been dropped onto the webview.
Fields
§
position: PhysicalPosition<f64>
The position of the mouse cursor.
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)