[][src]Struct fermium::events::SDL_TouchFingerEvent

#[repr(C)]pub struct SDL_TouchFingerEvent {
    pub type_: SDL_EventType,
    pub timestamp: u32,
    pub touchId: SDL_TouchID,
    pub fingerId: SDL_FingerID,
    pub x: c_float,
    pub y: c_float,
    pub dx: c_float,
    pub dy: c_float,
    pub pressure: c_float,
    pub windowID: u32,
}

Touch finger event structure (event.tfinger.*)

Fields

type_: SDL_EventTypetimestamp: u32

In milliseconds, populated using [SDL_GetTicks].

touchId: SDL_TouchID

The touch device id

fingerId: SDL_FingerIDx: c_float

Normalized in the range 0...1

y: c_float

Normalized in the range 0...1

dx: c_float

Normalized in the range -1...1

dy: c_float

Normalized in the range -1...1

pressure: c_float

Normalized in the range 0...1

windowID: u32

The window underneath the finger, if any

Trait Implementations

impl Clone for SDL_TouchFingerEvent[src]

impl Copy for SDL_TouchFingerEvent[src]

impl Debug for SDL_TouchFingerEvent[src]

impl Default for SDL_TouchFingerEvent[src]

impl PartialEq<SDL_TouchFingerEvent> for SDL_TouchFingerEvent[src]

impl PartialOrd<SDL_TouchFingerEvent> for SDL_TouchFingerEvent[src]

impl StructuralPartialEq for SDL_TouchFingerEvent[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.