pub struct DragState {
pub id: DragId,
pub source_widget: WidgetId,
pub phase: DragPhase,
pub start_position: Point,
pub current_position: Point,
pub data: DragData,
pub hover_target: Option<WidgetId>,
pub allowed_effects: Vec<DropEffect>,
pub effect: DropEffect,
}Expand description
State of an active drag operation.
Fields§
§id: DragIdUnique drag ID.
source_widget: WidgetIdSource widget.
phase: DragPhaseCurrent phase.
start_position: PointStarting position.
current_position: PointCurrent position.
data: DragDataDrag data.
hover_target: Option<WidgetId>Currently hovered drop target.
allowed_effects: Vec<DropEffect>Allowed drop effects.
effect: DropEffectCurrent drop effect.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DragState
impl !RefUnwindSafe for DragState
impl Send for DragState
impl Sync for DragState
impl Unpin 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