Enum rich_sdl2_rust::event::touch::gesture::GestureEvent
source · #[non_exhaustive]pub enum GestureEvent {
Multi {
timestamp: u32,
delta_theta: f32,
delta_dist: f32,
x: f32,
y: f32,
num_fingers: u16,
},
Dollar {
timestamp: u32,
touch: TouchDevice,
gesture: Gesture,
num_fingers: u32,
error: f32,
x: f32,
y: f32,
},
DollarRecord {
touch: TouchDevice,
gesture: Gesture,
},
}
Expand description
An event on recognized a gesture
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Multi
Fields
The gesture was multi touches.
Dollar
Fields
§
touch: TouchDevice
The touch device the gesture detected.
The gesture was recognized by $1.
DollarRecord
Fields
§
touch: TouchDevice
The touch device the gesture detected.
The gesture was recorded for $1.
Trait Implementations§
source§impl Clone for GestureEvent
impl Clone for GestureEvent
source§fn clone(&self) -> GestureEvent
fn clone(&self) -> GestureEvent
Returns a copy 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 moresource§impl Debug for GestureEvent
impl Debug for GestureEvent
source§impl From<SDL_DollarGestureEvent> for GestureEvent
impl From<SDL_DollarGestureEvent> for GestureEvent
Auto Trait Implementations§
impl !RefUnwindSafe for GestureEvent
impl Send for GestureEvent
impl !Sync for GestureEvent
impl Unpin for GestureEvent
impl UnwindSafe for GestureEvent
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