#[repr(C)]pub struct Touch {Show 14 fields
pub m_finger_id: i32,
pub m_position: Vector2,
pub m_raw_position: Vector2,
pub m_position_delta: Vector2,
pub m_time_delta: f32,
pub m_tap_count: i32,
pub m_phase: TouchPhase,
pub m_type: TouchType,
pub m_pressure: f32,
pub m_maximum_possible_pressure: f32,
pub m_radius: f32,
pub m_radius_variance: f32,
pub m_altitude_angle: f32,
pub m_azimuth_angle: f32,
}Expand description
Fields§
§m_finger_id: i32§m_position: Vector2§m_raw_position: Vector2§m_position_delta: Vector2§m_time_delta: f32§m_tap_count: i32§m_phase: TouchPhase§m_type: TouchType§m_pressure: f32§m_maximum_possible_pressure: f32§m_radius: f32§m_radius_variance: f32§m_altitude_angle: f32§m_azimuth_angle: f32Implementations§
Source§impl Touch
impl Touch
Sourcepub fn get_finger_id(&mut self) -> i32
pub fn get_finger_id(&mut self) -> i32
get_fingerId() overload
Sourcepub fn get_position(&mut self) -> Vector2
pub fn get_position(&mut self) -> Vector2
get_position() overload
Sourcepub fn get_delta_position(&mut self) -> Vector2
pub fn get_delta_position(&mut self) -> Vector2
get_deltaPosition() overload
Sourcepub fn get_phase(&mut self) -> TouchPhase
pub fn get_phase(&mut self) -> TouchPhase
get_phase() overload
Source§impl Touch
impl Touch
pub fn get_finger_id_method_info() -> &'static MethodInfo
pub fn get_position_method_info() -> &'static MethodInfo
pub fn get_delta_position_method_info() -> &'static MethodInfo
pub fn get_phase_method_info() -> &'static MethodInfo
pub fn get_type_method_info() -> &'static MethodInfo
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Touch
impl RefUnwindSafe for Touch
impl Send for Touch
impl Sync for Touch
impl Unpin for Touch
impl UnwindSafe for Touch
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)