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 Clone for NativeTouchEvent
impl Clone for NativeTouchEvent
Source§fn clone(&self) -> NativeTouchEvent
fn clone(&self) -> NativeTouchEvent
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 NativeTouchEvent
impl Debug for NativeTouchEvent
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
Source§impl PartialEq for NativeTouchEvent
impl PartialEq for NativeTouchEvent
Source§fn eq(&self, other: &NativeTouchEvent) -> bool
fn eq(&self, other: &NativeTouchEvent) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for NativeTouchEvent
impl StructuralPartialEq for NativeTouchEvent
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