pub enum TouchEvent {
Start {
id: u64,
pos: Point,
},
Move {
id: u64,
pos: Point,
},
End {
id: u64,
pos: Point,
},
Cancel {
id: u64,
},
Gesture {
kind: GestureKind,
center: Point,
},
}Expand description
A touch event from a single contact point, identified by a stable touch id.
Variants§
Start
A finger touched down.
Move
A touched finger moved.
End
A finger lifted off.
Cancel
The contact was cancelled by the system (e.g. palm rejection).
Gesture
A recognised gesture spanning one or more contacts.
Implementations§
Trait Implementations§
Source§impl Clone for TouchEvent
impl Clone for TouchEvent
Source§fn clone(&self) -> TouchEvent
fn clone(&self) -> TouchEvent
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 moreSource§impl Debug for TouchEvent
impl Debug for TouchEvent
Source§impl PartialEq for TouchEvent
impl PartialEq for TouchEvent
Source§fn eq(&self, other: &TouchEvent) -> bool
fn eq(&self, other: &TouchEvent) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for TouchEvent
impl StructuralPartialEq for TouchEvent
Auto Trait Implementations§
impl Freeze for TouchEvent
impl RefUnwindSafe for TouchEvent
impl Send for TouchEvent
impl Sync for TouchEvent
impl Unpin for TouchEvent
impl UnsafeUnpin for TouchEvent
impl UnwindSafe for TouchEvent
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