pub struct TouchPointData {
pub id: i32,
pub screen_x: f32,
pub screen_y: f32,
pub x: f32,
pub y: f32,
pub event_type: TouchEvent,
pub size: f64,
pub force: f32,
pub timestamp: i64,
pub is_pressed: bool,
pub event_tool_type: TouchPointTool,
}Fields§
§id: i32§screen_x: f32§screen_y: f32§x: f32§y: f32§event_type: TouchEvent§size: f64§force: f32§timestamp: i64§is_pressed: bool§event_tool_type: TouchPointToolTrait Implementations§
Source§impl Clone for TouchPointData
impl Clone for TouchPointData
Source§fn clone(&self) -> TouchPointData
fn clone(&self) -> TouchPointData
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 TouchPointData
impl Debug for TouchPointData
Source§impl Default for TouchPointData
impl Default for TouchPointData
Source§impl From<TouchPointData> for OH_NativeXComponent_TouchPoint
impl From<TouchPointData> for OH_NativeXComponent_TouchPoint
Source§fn from(value: TouchPointData) -> Self
fn from(value: TouchPointData) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for TouchPointData
impl RefUnwindSafe for TouchPointData
impl Send for TouchPointData
impl Sync for TouchPointData
impl Unpin for TouchPointData
impl UnsafeUnpin for TouchPointData
impl UnwindSafe for TouchPointData
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