pub struct TouchEvent {
pub phase: TouchPhase,
pub timestamp: f64,
pub points: Vec<TouchPoint>,
pub activated: Option<NodeId>,
pub modifiers: Modifiers,
}Expand description
Touches for the JS responder system.
Fields§
§phase: TouchPhaseWhat happened.
timestamp: f64Milliseconds since an arbitrary origin.
points: Vec<TouchPoint>The fingers down during the event (with those that lifted).
activated: Option<NodeId>A view around the fingers whose panActivation the platform
activated with this event: it becomes the responder.
modifiers: ModifiersThe modifier keys held when the changed pointer went down, as a
press’s PressEvent::modifiers (none for a finger on a touch
screen).
Implementations§
Source§impl TouchEvent
impl TouchEvent
Sourcepub fn merge_move(&mut self, later: TouchEvent)
pub fn merge_move(&mut self, later: TouchEvent)
Folds a later move into this pending one: the later positions,
changed if either moved them, and either’s activated pan. A point
this one moved keeps its samples: they go before the later ones in
TouchPoint::coalesced, with this event’s own position.
Trait Implementations§
Source§impl Clone for TouchEvent
impl Clone for TouchEvent
Source§impl Debug for TouchEvent
impl Debug for TouchEvent
Source§impl PartialEq for TouchEvent
impl PartialEq for TouchEvent
impl StructuralPartialEq for TouchEvent
Auto Trait Implementations§
impl Forget for TouchEvent
impl Freeze for TouchEvent
impl Move for TouchEvent
impl RefUnwindSafe for TouchEvent
impl Send for TouchEventwhere
RawVecInner: Send,
impl Sync for TouchEventwhere
RawVecInner: Sync,
impl Unpin for TouchEvent
impl UnsafeUnpin for TouchEvent
impl UnwindSafe for TouchEventwhere
RawVecInner: UnwindSafe,
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