#[repr(transparent)]pub struct OH_NativeXComponent_TouchEventType(pub c_uint);Expand description
Represents the type of touch event.
Available since API-level: 8
Version: 1.0
Tuple Fields§
§0: c_uintImplementations§
Source§impl OH_NativeXComponent_TouchEventType
impl OH_NativeXComponent_TouchEventType
Sourcepub const OH_NATIVEXCOMPONENT_DOWN: OH_NativeXComponent_TouchEventType
pub const OH_NATIVEXCOMPONENT_DOWN: OH_NativeXComponent_TouchEventType
Trigger a touch event when a finger is pressed.
Sourcepub const OH_NATIVEXCOMPONENT_UP: OH_NativeXComponent_TouchEventType
pub const OH_NATIVEXCOMPONENT_UP: OH_NativeXComponent_TouchEventType
Trigger a touch event when a finger is lifted.
Sourcepub const OH_NATIVEXCOMPONENT_MOVE: OH_NativeXComponent_TouchEventType
pub const OH_NATIVEXCOMPONENT_MOVE: OH_NativeXComponent_TouchEventType
Trigger a touch event when a finger moves on the screen in pressed state.
Sourcepub const OH_NATIVEXCOMPONENT_CANCEL: OH_NativeXComponent_TouchEventType
pub const OH_NATIVEXCOMPONENT_CANCEL: OH_NativeXComponent_TouchEventType
Trigger an event when a touch event is canceled.
Sourcepub const OH_NATIVEXCOMPONENT_UNKNOWN: OH_NativeXComponent_TouchEventType
pub const OH_NATIVEXCOMPONENT_UNKNOWN: OH_NativeXComponent_TouchEventType
Invalid touch type.
Trait Implementations§
Source§impl Clone for OH_NativeXComponent_TouchEventType
impl Clone for OH_NativeXComponent_TouchEventType
Source§fn clone(&self) -> OH_NativeXComponent_TouchEventType
fn clone(&self) -> OH_NativeXComponent_TouchEventType
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_TouchEventType
impl Eq for OH_NativeXComponent_TouchEventType
impl StructuralPartialEq for OH_NativeXComponent_TouchEventType
Auto Trait Implementations§
impl Freeze for OH_NativeXComponent_TouchEventType
impl RefUnwindSafe for OH_NativeXComponent_TouchEventType
impl Send for OH_NativeXComponent_TouchEventType
impl Sync for OH_NativeXComponent_TouchEventType
impl Unpin for OH_NativeXComponent_TouchEventType
impl UnwindSafe for OH_NativeXComponent_TouchEventType
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)