pub struct DragAndDropSource { /* private fields */ }Expand description
A payload a node offers to be dragged out of it, and what the node wants to hear about the transfer.
Implementations§
Source§impl DragAndDropSource
impl DragAndDropSource
Sourcepub fn on_started(self, handler: impl Fn(DragAndDropPoint) + 'static) -> Self
pub fn on_started(self, handler: impl Fn(DragAndDropPoint) + 'static) -> Self
Called once the press has moved past the drag threshold.
Sourcepub fn on_moved(self, handler: impl Fn(DragAndDropPoint) + 'static) -> Self
pub fn on_moved(self, handler: impl Fn(DragAndDropPoint) + 'static) -> Self
Called with every pointer sample while the transfer runs.
Sourcepub fn on_ended(self, handler: impl Fn(DragAndDropOutcome) + 'static) -> Self
pub fn on_ended(self, handler: impl Fn(DragAndDropOutcome) + 'static) -> Self
Called when the transfer ends, with how it ended.
Trait Implementations§
Source§impl Clone for DragAndDropSource
impl Clone for DragAndDropSource
Auto Trait Implementations§
impl !RefUnwindSafe for DragAndDropSource
impl !Send for DragAndDropSource
impl !Sync for DragAndDropSource
impl !UnwindSafe for DragAndDropSource
impl Freeze for DragAndDropSource
impl Unpin for DragAndDropSource
impl UnsafeUnpin for DragAndDropSource
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