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
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 moresourceimpl Debug for SDL_DollarGestureEvent
impl Debug for SDL_DollarGestureEvent
sourceimpl Default for SDL_DollarGestureEvent
impl Default for SDL_DollarGestureEvent
sourcefn default() -> SDL_DollarGestureEvent
fn default() -> SDL_DollarGestureEvent
Returns the “default value” for a type. Read more
sourceimpl PartialEq<SDL_DollarGestureEvent> for SDL_DollarGestureEvent
impl PartialEq<SDL_DollarGestureEvent> for SDL_DollarGestureEvent
sourcefn eq(&self, other: &SDL_DollarGestureEvent) -> bool
fn eq(&self, other: &SDL_DollarGestureEvent) -> bool
sourceimpl PartialOrd<SDL_DollarGestureEvent> for SDL_DollarGestureEvent
impl PartialOrd<SDL_DollarGestureEvent> for SDL_DollarGestureEvent
sourcefn partial_cmp(&self, other: &SDL_DollarGestureEvent) -> Option<Ordering>
fn partial_cmp(&self, other: &SDL_DollarGestureEvent) -> Option<Ordering>
1.0.0 · sourcefn 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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more