pub enum TouchEvent {
Started {
id: u64,
x: f32,
y: f32,
pressure: f32,
},
Moved {
id: u64,
x: f32,
y: f32,
pressure: f32,
},
Ended {
id: u64,
x: f32,
y: f32,
},
Cancelled {
id: u64,
},
}Expand description
Touch events for touchscreens
Variants§
Started
A touch started
Fields
Moved
A touch moved
Fields
Ended
A touch ended
Fields
Cancelled
A touch was cancelled (e.g., by system gesture)
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 · 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 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