pub struct DragEvent { /* private fields */ }
Expand description
An event emitted during a drag gesture.
Implementations§
Source§impl DragEvent
impl DragEvent
Sourcepub fn kind(&self) -> DragEventKind
pub fn kind(&self) -> DragEventKind
The kind of the drag event.
Sourcepub fn start_location(&self) -> Vec2<f64>
pub fn start_location(&self) -> Vec2<f64>
The starting point of the drag.
Sourcepub fn translation(&self) -> Vec2<f64>
pub fn translation(&self) -> Vec2<f64>
The distance moved during the gesture.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for DragEvent
impl<'de> Deserialize<'de> for DragEvent
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for DragEvent
Auto Trait Implementations§
impl Freeze for DragEvent
impl RefUnwindSafe for DragEvent
impl Send for DragEvent
impl Sync for DragEvent
impl Unpin for DragEvent
impl UnwindSafe for DragEvent
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