pub struct TouchMove {
pub touch: TouchId,
pub touch_propagation: EventPropagationHandle,
pub moves: Vec<(DipPoint, Option<TouchForce>)>,
pub velocity: DipVector,
pub hits: HitTestInfo,
pub target: InteractionPath,
}
Expand description
Identify the moves of one touch contact in TouchMoveArgs
.
Fields§
§touch: TouchId
Identify the touch contact or finger.
Multiple points of contact can happen in the same device at the same time, this ID identifies each uninterrupted contact. IDs are unique only among other concurrent touches on the same device, after a touch is ended an ID may be reused.
touch_propagation: EventPropagationHandle
Handle across the lifetime of touch
.
See TouchInputArgs::touch_propagation
for more details.
moves: Vec<(DipPoint, Option<TouchForce>)>
Coalesced moves of the touch since last event.
Last entry is the latest position.
velocity: DipVector
Velocity in device independent pixels per second.
The velocity is computed from the 4 non-coalesced move events. If is zero before the fourth event.
hits: HitTestInfo
Hit-test result for the latest touch point in the window.
target: InteractionPath
Full path to the top-most hit in hits
.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TouchMove
impl RefUnwindSafe for TouchMove
impl Send for TouchMove
impl Sync for TouchMove
impl Unpin for TouchMove
impl UnwindSafe for TouchMove
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,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more