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: TouchIdIdentify 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: EventPropagationHandleHandle 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: DipVectorVelocity 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: HitTestInfoHit-test result for the latest touch point in the window.
target: InteractionPathFull 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,
§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