Struct fermium::events::SDL_DollarGestureEvent
source · #[repr(C)]pub struct SDL_DollarGestureEvent {
pub type_: SDL_EventType,
pub timestamp: u32,
pub touchId: SDL_TouchID,
pub gestureId: SDL_GestureID,
pub numFingers: u32,
pub error: c_float,
pub x: c_float,
pub y: c_float,
}
Expand description
Dollar Gesture Event (event.dgesture.*)
Fields§
§type_: SDL_EventType
Should always be SDL_DOLLARGESTURE
or SDL_DOLLARRECORD
timestamp: u32
In milliseconds, populated using SDL_GetTicks
.
touchId: SDL_TouchID
The touch device id
gestureId: SDL_GestureID
§numFingers: u32
§error: c_float
§x: c_float
Normalized center of gesture
y: c_float
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 moresource§impl Debug for SDL_DollarGestureEvent
impl Debug for SDL_DollarGestureEvent
source§impl Default for SDL_DollarGestureEvent
impl Default for SDL_DollarGestureEvent
source§fn default() -> SDL_DollarGestureEvent
fn default() -> SDL_DollarGestureEvent
Returns the “default value” for a type. Read more
source§impl PartialEq<SDL_DollarGestureEvent> for SDL_DollarGestureEvent
impl PartialEq<SDL_DollarGestureEvent> for SDL_DollarGestureEvent
source§fn eq(&self, other: &SDL_DollarGestureEvent) -> bool
fn eq(&self, other: &SDL_DollarGestureEvent) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<SDL_DollarGestureEvent> for SDL_DollarGestureEvent
impl PartialOrd<SDL_DollarGestureEvent> for SDL_DollarGestureEvent
source§fn partial_cmp(&self, other: &SDL_DollarGestureEvent) -> Option<Ordering>
fn partial_cmp(&self, other: &SDL_DollarGestureEvent) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for SDL_DollarGestureEvent
impl StructuralPartialEq 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§
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