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§
source§impl Clone for SDL_DollarGestureEvent
impl Clone for SDL_DollarGestureEvent
source§fn clone(&self) -> SDL_DollarGestureEvent
fn clone(&self) -> SDL_DollarGestureEvent
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 moreimpl Copy for SDL_DollarGestureEvent
Auto Trait Implementations§
impl Freeze for SDL_DollarGestureEvent
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§
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