#[repr(transparent)]pub struct OH_NativeXComponent_EventSourceType(pub c_uint);Available on crate feature
xcomponent only.Expand description
@brief Represents the touch event source type.
@since 9 @version 1.0
Tuple Fields§
§0: c_uintImplementations§
source§impl OH_NativeXComponent_EventSourceType
impl OH_NativeXComponent_EventSourceType
sourcepub const OH_NATIVEXCOMPONENT_SOURCE_TYPE_UNKNOWN: OH_NativeXComponent_EventSourceType = _
pub const OH_NATIVEXCOMPONENT_SOURCE_TYPE_UNKNOWN: OH_NativeXComponent_EventSourceType = _
Indicates an unknown input source type.
source§impl OH_NativeXComponent_EventSourceType
impl OH_NativeXComponent_EventSourceType
sourcepub const OH_NATIVEXCOMPONENT_SOURCE_TYPE_MOUSE: OH_NativeXComponent_EventSourceType = _
pub const OH_NATIVEXCOMPONENT_SOURCE_TYPE_MOUSE: OH_NativeXComponent_EventSourceType = _
Indicates that the input source generates a mouse multi-touch event.
source§impl OH_NativeXComponent_EventSourceType
impl OH_NativeXComponent_EventSourceType
sourcepub const OH_NATIVEXCOMPONENT_SOURCE_TYPE_TOUCHSCREEN: OH_NativeXComponent_EventSourceType = _
pub const OH_NATIVEXCOMPONENT_SOURCE_TYPE_TOUCHSCREEN: OH_NativeXComponent_EventSourceType = _
Indicates that the input source generates a touchscreen multi-touch event.
source§impl OH_NativeXComponent_EventSourceType
impl OH_NativeXComponent_EventSourceType
sourcepub const OH_NATIVEXCOMPONENT_SOURCE_TYPE_TOUCHPAD: OH_NativeXComponent_EventSourceType = _
pub const OH_NATIVEXCOMPONENT_SOURCE_TYPE_TOUCHPAD: OH_NativeXComponent_EventSourceType = _
Indicates that the input source generates a touchpad multi-touch event.
source§impl OH_NativeXComponent_EventSourceType
impl OH_NativeXComponent_EventSourceType
sourcepub const OH_NATIVEXCOMPONENT_SOURCE_TYPE_JOYSTICK: OH_NativeXComponent_EventSourceType = _
pub const OH_NATIVEXCOMPONENT_SOURCE_TYPE_JOYSTICK: OH_NativeXComponent_EventSourceType = _
Indicates that the input source generates a joystick multi-touch event.
source§impl OH_NativeXComponent_EventSourceType
impl OH_NativeXComponent_EventSourceType
sourcepub const OH_NATIVEXCOMPONENT_SOURCE_TYPE_KEYBOARD: OH_NativeXComponent_EventSourceType = _
pub const OH_NATIVEXCOMPONENT_SOURCE_TYPE_KEYBOARD: OH_NativeXComponent_EventSourceType = _
@brief Indicates that the input source generates a keyboard event.
@since 10 @version 1.0
Trait Implementations§
source§impl Clone for OH_NativeXComponent_EventSourceType
impl Clone for OH_NativeXComponent_EventSourceType
source§fn clone(&self) -> OH_NativeXComponent_EventSourceType
fn clone(&self) -> OH_NativeXComponent_EventSourceType
Returns a copy of the value. Read more
1.0.0 · 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_EventSourceType
impl PartialEq for OH_NativeXComponent_EventSourceType
source§fn eq(&self, other: &OH_NativeXComponent_EventSourceType) -> bool
fn eq(&self, other: &OH_NativeXComponent_EventSourceType) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for OH_NativeXComponent_EventSourceType
impl Eq for OH_NativeXComponent_EventSourceType
impl StructuralPartialEq for OH_NativeXComponent_EventSourceType
Auto Trait Implementations§
impl Freeze for OH_NativeXComponent_EventSourceType
impl RefUnwindSafe for OH_NativeXComponent_EventSourceType
impl Send for OH_NativeXComponent_EventSourceType
impl Sync for OH_NativeXComponent_EventSourceType
impl Unpin for OH_NativeXComponent_EventSourceType
impl UnwindSafe for OH_NativeXComponent_EventSourceType
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)