#[repr(C)]pub struct SDL_PinchFingerEvent {
pub type_: SDL_EventType,
pub reserved: Uint32,
pub timestamp: Uint64,
pub scale: f32,
pub windowID: SDL_WindowID,
}Expand description
Pinch event structure (event.pinch.*)
Fields§
§type_: SDL_EventType< ::SDL_EVENT_PINCH_BEGIN or ::SDL_EVENT_PINCH_UPDATE or ::SDL_EVENT_PINCH_END
reserved: Uint32§timestamp: Uint64< In nanoseconds, populated using SDL_GetTicksNS()
scale: f32< The scale change since the last SDL_EVENT_PINCH_UPDATE. Scale < 1 is “zoom out”. Scale > 1 is “zoom in”.
windowID: SDL_WindowID< The window underneath the finger, if any
Trait Implementations§
Source§impl Clone for SDL_PinchFingerEvent
impl Clone for SDL_PinchFingerEvent
Source§fn clone(&self) -> SDL_PinchFingerEvent
fn clone(&self) -> SDL_PinchFingerEvent
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_PinchFingerEvent
impl Debug for SDL_PinchFingerEvent
Source§impl Default for SDL_PinchFingerEvent
impl Default for SDL_PinchFingerEvent
impl Copy for SDL_PinchFingerEvent
Auto Trait Implementations§
impl Freeze for SDL_PinchFingerEvent
impl RefUnwindSafe for SDL_PinchFingerEvent
impl Send for SDL_PinchFingerEvent
impl Sync for SDL_PinchFingerEvent
impl Unpin for SDL_PinchFingerEvent
impl UnsafeUnpin for SDL_PinchFingerEvent
impl UnwindSafe for SDL_PinchFingerEvent
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