pub struct Drag {
pub phase: DragPhase,
pub position: Point,
pub frame: Rect,
pub container: Rect,
}Expand description
A pointer drag on an element, in absolute logical pixels, with the element’s frame.
Fields§
§phase: DragPhaseWhich part of the drag this event is.
position: PointPointer position in absolute logical pixels.
frame: RectThe dragged element’s absolute frame.
container: RectThe frame of the dragged element’s parent (e.g. a splitter’s container).
Implementations§
Trait Implementations§
impl Copy for Drag
impl StructuralPartialEq for Drag
Auto Trait Implementations§
impl Freeze for Drag
impl RefUnwindSafe for Drag
impl Send for Drag
impl Sync for Drag
impl Unpin for Drag
impl UnsafeUnpin for Drag
impl UnwindSafe for Drag
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