pub struct NativeTouchEvent { /* private fields */ }Expand description
Data associated with a touch event.
Captures the number of touch points and the first touch coordinates.
Implementations§
Source§impl NativeTouchEvent
Implementation of NativeTouchEvent construction.
impl NativeTouchEvent
Implementation of NativeTouchEvent construction.
Source§impl NativeTouchEvent
impl NativeTouchEvent
pub fn get_touches_count(&self) -> &u32
pub fn get_mut_touches_count(&mut self) -> &mut u32
pub fn set_touches_count(&mut self, val: u32) -> &mut Self
pub fn get_client_x(&self) -> &i32
pub fn get_mut_client_x(&mut self) -> &mut i32
pub fn set_client_x(&mut self, val: i32) -> &mut Self
pub fn get_client_y(&self) -> &i32
pub fn get_mut_client_y(&mut self) -> &mut i32
pub fn set_client_y(&mut self, val: i32) -> &mut Self
Trait Implementations§
Source§impl Default for NativeTouchEvent
impl Default for NativeTouchEvent
Source§fn default() -> NativeTouchEvent
fn default() -> NativeTouchEvent
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for NativeTouchEvent
impl RefUnwindSafe for NativeTouchEvent
impl Send for NativeTouchEvent
impl Sync for NativeTouchEvent
impl Unpin for NativeTouchEvent
impl UnsafeUnpin for NativeTouchEvent
impl UnwindSafe for NativeTouchEvent
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