pub struct TouchCancel {
pub touches: Vec<Touch>,
}Expand description
A TouchCancel occurs when the platform aborts an active touch sequence before normal release, such as during a system interruption or host-level gesture cancellation.
The contained touches represent the cancelled touch points and the event targets, then
releases, the node captured at touch start. Cancelled touches must not produce activation.
A native Scroller that can observe its pan simultaneously with child touches keeps delivering
move events and finishes the child sequence with TouchEnd; winning scroll arbitration alone
does not cancel the touch.
Fields§
§touches: Vec<Touch>Touch points whose active sequence was cancelled.
Trait Implementations§
Source§impl Clone for TouchCancel
impl Clone for TouchCancel
Source§fn clone(&self) -> TouchCancel
fn clone(&self) -> TouchCancel
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 TouchCancel
impl RefUnwindSafe for TouchCancel
impl Send for TouchCancel
impl Sync for TouchCancel
impl Unpin for TouchCancel
impl UnsafeUnpin for TouchCancel
impl UnwindSafe for TouchCancel
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<T, U> RoundInto<U> for Twhere
U: RoundFrom<T>,
impl<T, U> RoundInto<U> for Twhere
U: RoundFrom<T>,
Source§fn round_into(self) -> U
fn round_into(self) -> U
Performs the conversion.