pub enum DragStateChange {
Phase {
previous: DragPhase,
next: DragPhase,
},
Enter {
target: DragTargetId,
},
Leave {
target: DragTargetId,
},
Move {
pointer: Point,
},
}Expand description
One change a DragCoordinator::subscribe listener hears.
Variants§
Phase
The session moved from previous to next.
Enter
The pointer moved onto target while dragging.
Fields
§
target: DragTargetIdThe newly hovered target.
Leave
The pointer left target, or the session hovering it (or about to
drop on it) was cancelled.
Fields
§
target: DragTargetIdThe target no longer hovered.
Move
The dragged pointer moved to pointer.
Trait Implementations§
Source§impl Clone for DragStateChange
impl Clone for DragStateChange
impl Copy for DragStateChange
Source§impl Debug for DragStateChange
impl Debug for DragStateChange
Source§impl PartialEq for DragStateChange
impl PartialEq for DragStateChange
impl StructuralPartialEq for DragStateChange
Auto Trait Implementations§
impl Freeze for DragStateChange
impl RefUnwindSafe for DragStateChange
impl Send for DragStateChange
impl Sync for DragStateChange
impl Unpin for DragStateChange
impl UnsafeUnpin for DragStateChange
impl UnwindSafe for DragStateChange
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,
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> StorageAccess<T> for T
impl<T> StorageAccess<T> for T
Source§fn as_borrowed(&self) -> &T
fn as_borrowed(&self) -> &T
Borrows the value.
Source§fn into_taken(self) -> T
fn into_taken(self) -> T
Takes the value.