#[repr(C)]pub struct SDL_Finger {
pub id: SDL_FingerID,
pub x: c_float,
pub y: c_float,
pub pressure: c_float,
}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.
§Availability
This struct is available since SDL 3.2.0.
§See also
Fields§
§id: SDL_FingerIDthe finger ID
x: c_floatthe x-axis location of the touch event, normalized (0…1)
y: c_floatthe y-axis location of the touch event, normalized (0…1)
pressure: c_floatthe 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
Source§impl PartialEq for SDL_Finger
impl PartialEq for SDL_Finger
impl Copy for SDL_Finger
impl StructuralPartialEq 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 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