pub enum DragPhase {
Idle,
Armed,
Dragging,
Dropping,
Cancelled,
}Expand description
The phase tag of a drag session — what a DragStateChange::Phase
reports and DragCoordinator::phase reads.
Variants§
Idle
No session.
Armed
A source was pressed and may start a drag.
Dragging
A drag is in flight.
Dropping
Released over a target; waiting for it to claim the payload and call
DragCoordinator::complete_drop.
Cancelled
Transient: the session was abandoned. Only ever reported between the
phase it left and Idle; DragCoordinator::phase never reads it.
Trait Implementations§
impl Copy for DragPhase
impl Eq for DragPhase
impl StructuralPartialEq for DragPhase
Auto Trait Implementations§
impl Freeze for DragPhase
impl RefUnwindSafe for DragPhase
impl Send for DragPhase
impl Sync for DragPhase
impl Unpin for DragPhase
impl UnsafeUnpin for DragPhase
impl UnwindSafe for DragPhase
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§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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.