#[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 (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 PartialEq for OH_NativeXComponent_TouchEventType
impl PartialEq for OH_NativeXComponent_TouchEventType
Source§fn eq(&self, other: &OH_NativeXComponent_TouchEventType) -> bool
fn eq(&self, other: &OH_NativeXComponent_TouchEventType) -> bool
Tests for
self and other values to be equal, and is used by ==.impl 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 UnsafeUnpin for OH_NativeXComponent_TouchEventType
impl UnwindSafe for OH_NativeXComponent_TouchEventType
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