Struct sdl2_sys::SDL_DollarGestureEvent
source · [−]#[repr(C)]pub struct SDL_DollarGestureEvent {
pub type_: Uint32,
pub timestamp: Uint32,
pub touchId: SDL_TouchID,
pub gestureId: SDL_GestureID,
pub numFingers: Uint32,
pub error: f32,
pub x: f32,
pub y: f32,
}
Expand description
\brief Dollar Gesture Event (event.dgesture.*)
Fields
type_: Uint32
< ::SDL_DOLLARGESTURE or ::SDL_DOLLARRECORD
timestamp: Uint32
< In milliseconds, populated using SDL_GetTicks()
touchId: SDL_TouchID
< The touch device id
gestureId: SDL_GestureID
numFingers: Uint32
error: f32
x: f32
< Normalized center of gesture
y: f32
< Normalized center of gesture
Trait Implementations
sourceimpl Clone for SDL_DollarGestureEvent
impl Clone for SDL_DollarGestureEvent
sourcefn clone(&self) -> SDL_DollarGestureEvent
fn clone(&self) -> SDL_DollarGestureEvent
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl Copy for SDL_DollarGestureEvent
Auto Trait Implementations
impl RefUnwindSafe for SDL_DollarGestureEvent
impl Send for SDL_DollarGestureEvent
impl Sync for SDL_DollarGestureEvent
impl Unpin for SDL_DollarGestureEvent
impl UnwindSafe for SDL_DollarGestureEvent
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more