pub enum DragState {
Idle,
Armed {
source: DragSourceId,
press: Point,
keyboard: bool,
},
Dragging(DragSession),
Dropping {
session: DragSession,
target: DragTargetId,
},
}Expand description
A snapshot of a coordinator’s state (DragCoordinator::state).
Variants§
Idle
No session.
Armed
source was pressed at press and may start a drag.
Fields
§
source: DragSourceIdThe pressed source.
§
keyboard: boolWhether this arm came from DragCoordinator::lift rather than
DragCoordinator::arm — see DragSession::keyboard.
Dragging(DragSession)
A drag is in flight.
Dropping
Released over target, awaiting DragCoordinator::complete_drop.
Fields
§
session: DragSessionThe session being dropped.
§
target: DragTargetIdThe target it was released over.
Implementations§
Trait Implementations§
impl StructuralPartialEq for DragState
Auto Trait Implementations§
impl Freeze for DragState
impl RefUnwindSafe for DragState
impl Send for DragState
impl Sync for DragState
impl Unpin for DragState
impl UnsafeUnpin for DragState
impl UnwindSafe for DragState
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.