pub struct PointerDrag {
pub x: f32,
pub y: f32,
pub pointer: PointerKind,
pub modifiers: KeyModifiers,
pub captured: bool,
}Expand description
Data from a drag event.
Fields§
§x: f32X coordinate.
y: f32Y coordinate.
pointer: PointerKindPointer kind (Mouse, Touch, Pen).
modifiers: KeyModifiersActive modifier keys.
captured: boolWhether the event was consumed by a widget before reaching the global subscription layer.
Trait Implementations§
Source§impl Clone for PointerDrag
impl Clone for PointerDrag
Source§fn clone(&self) -> PointerDrag
fn clone(&self) -> PointerDrag
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for PointerDrag
impl RefUnwindSafe for PointerDrag
impl Send for PointerDrag
impl Sync for PointerDrag
impl Unpin for PointerDrag
impl UnsafeUnpin for PointerDrag
impl UnwindSafe for PointerDrag
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