#[repr(C)]pub struct SDL_Finger {
pub id: SDL_FingerID,
pub x: f32,
pub y: f32,
pub pressure: f32,
}Expand description
Data about a single finger in a multitouch event.
Each touch event is a collection of fingers that are simultaneously in contact with the touch device (so a “touch” can be a “multitouch,” in reality), and this struct reports details of the specific fingers.
Available Since: This struct is available since SDL 3.2.0.
See Also: SDL_GetTouchFingers
Fields§
§id: SDL_FingerID< the finger ID
x: f32< the x-axis location of the touch event, normalized (0…1)
y: f32< the y-axis location of the touch event, normalized (0…1)
pressure: f32< the quantity of pressure applied, normalized (0…1)
Trait Implementations§
Source§impl Clone for SDL_Finger
impl Clone for SDL_Finger
Source§fn clone(&self) -> SDL_Finger
fn clone(&self) -> SDL_Finger
Returns a duplicate 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_Finger
impl Debug for SDL_Finger
Source§impl Default for SDL_Finger
impl Default for SDL_Finger
Source§fn default() -> SDL_Finger
fn default() -> SDL_Finger
Returns the “default value” for a type. Read more
impl Copy for SDL_Finger
Auto Trait Implementations§
impl Freeze for SDL_Finger
impl RefUnwindSafe for SDL_Finger
impl Send for SDL_Finger
impl Sync for SDL_Finger
impl Unpin for SDL_Finger
impl UnsafeUnpin for SDL_Finger
impl UnwindSafe for SDL_Finger
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