pub struct DragEvent {
pub mouse: MouseEvent,
pub data_transfer: Option<Rc<DataTransfer>>,
}Expand description
A DOM DragEvent: a drag or a drop, with its data.
Fields§
§mouse: MouseEvent§data_transfer: Option<Rc<DataTransfer>>Implementations§
Methods from Deref<Target = Event>§
Sourcepub fn prevent_default(&self)
pub fn prevent_default(&self)
preventDefault(): a cancelable event’s default action is not to
happen.
Sourcepub fn default_prevented(&self) -> bool
pub fn default_prevented(&self) -> bool
defaultPrevented.
Sourcepub fn stop_propagation(&self)
pub fn stop_propagation(&self)
stopPropagation().
Sourcepub fn propagation_stopped(&self) -> bool
pub fn propagation_stopped(&self) -> bool
Whether stopPropagation() was called.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for DragEvent
impl !RefUnwindSafe for DragEvent
impl !Send for DragEvent
impl !Sync for DragEvent
impl !UnwindSafe for DragEvent
impl Forget for DragEvent
impl Move for DragEvent
impl Unpin for DragEvent
impl UnsafeUnpin for DragEvent
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