#[repr(C)]pub struct OH_NativeXComponent_TouchPoint {
pub id: i32,
pub screenX: f32,
pub screenY: f32,
pub x: f32,
pub y: f32,
pub type_: OH_NativeXComponent_TouchEventType,
pub size: f64,
pub force: f32,
pub timeStamp: i64,
pub isPressed: bool,
}Expand description
Represents the touch point information of touch event.
Available since API-level: 8
Version: 1.0
Fields§
§id: i32Unique identifier of a finger.
screenX: f32X coordinate of the touch point relative to the left edge of the screen.
screenY: f32Y coordinate of the touch point relative to the upper edge of the screen.
x: f32X coordinate of the touch point relative to the left edge of the element to touch.
y: f32Y coordinate of the touch point relative to the upper edge of the element to touch.
type_: OH_NativeXComponent_TouchEventTypeTouch type of the touch event.
size: f64Contact area between the finger pad and the screen.
force: f32Pressure of the current touch event.
timeStamp: i64Timestamp of the current touch event.
isPressed: boolWhether the current point is pressed.
Trait Implementations§
Source§impl Clone for OH_NativeXComponent_TouchPoint
impl Clone for OH_NativeXComponent_TouchPoint
Source§fn clone(&self) -> OH_NativeXComponent_TouchPoint
fn clone(&self) -> OH_NativeXComponent_TouchPoint
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for OH_NativeXComponent_TouchPoint
Auto Trait Implementations§
impl Freeze for OH_NativeXComponent_TouchPoint
impl RefUnwindSafe for OH_NativeXComponent_TouchPoint
impl Send for OH_NativeXComponent_TouchPoint
impl Sync for OH_NativeXComponent_TouchPoint
impl Unpin for OH_NativeXComponent_TouchPoint
impl UnwindSafe for OH_NativeXComponent_TouchPoint
Blanket Implementations§
§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)