pub struct TouchDetail {Show 15 fields
pub x: i32,
pub y: i32,
pub prev_x: i32,
pub prev_y: i32,
pub base_x: i32,
pub base_y: i32,
pub base_msec: u32,
pub state: TouchState,
pub is_pressed: bool,
pub was_pressed: bool,
pub was_released: bool,
pub was_clicked: bool,
pub was_hold: bool,
pub is_holding: bool,
pub click_count: i32,
}Fields§
§x: i32§y: i32§prev_x: i32§prev_y: i32§base_x: i32§base_y: i32§base_msec: u32§state: TouchState§is_pressed: bool§was_pressed: bool§was_released: bool§was_clicked: bool§was_hold: bool§is_holding: bool§click_count: i32Implementations§
Source§impl TouchDetail
impl TouchDetail
pub fn is_pressed(&self) -> bool
pub fn was_pressed(&self) -> bool
pub fn was_clicked(&self) -> bool
pub fn was_released(&self) -> bool
pub fn is_holding(&self) -> bool
pub fn was_hold(&self) -> bool
pub fn click_count(&self) -> i32
pub fn delta_x(&self) -> i32
pub fn delta_y(&self) -> i32
pub fn delta(&self) -> (i32, i32)
pub fn distance_x(&self) -> i32
pub fn distance_y(&self) -> i32
pub fn distance(&self) -> (i32, i32)
pub fn is_released(&self) -> bool
pub fn was_flick_start(&self) -> bool
pub fn is_flicking(&self) -> bool
pub fn was_flicked(&self) -> bool
pub fn was_drag_start(&self) -> bool
pub fn is_dragging(&self) -> bool
pub fn was_dragged(&self) -> bool
Trait Implementations§
Source§impl Clone for TouchDetail
impl Clone for TouchDetail
Source§fn clone(&self) -> TouchDetail
fn clone(&self) -> TouchDetail
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 TouchDetail
impl Debug for TouchDetail
Source§impl Default for TouchDetail
impl Default for TouchDetail
Source§fn default() -> TouchDetail
fn default() -> TouchDetail
Returns the “default value” for a type. Read more
Source§impl PartialEq for TouchDetail
impl PartialEq for TouchDetail
Source§fn eq(&self, other: &TouchDetail) -> bool
fn eq(&self, other: &TouchDetail) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for TouchDetail
impl Eq for TouchDetail
impl StructuralPartialEq for TouchDetail
Auto Trait Implementations§
impl Freeze for TouchDetail
impl RefUnwindSafe for TouchDetail
impl Send for TouchDetail
impl Sync for TouchDetail
impl Unpin for TouchDetail
impl UnsafeUnpin for TouchDetail
impl UnwindSafe for TouchDetail
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