#[repr(transparent)]pub struct OH_NativeXComponent_EventSourceType(pub c_uint);
Expand description
Represents the touch event source type.
Available since API-level: 9
Version: 1.0
Tuple Fields§
§0: c_uint
Implementations§
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.
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.
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.
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.
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.
Sourcepub const OH_NATIVEXCOMPONENT_SOURCE_TYPE_KEYBOARD: OH_NativeXComponent_EventSourceType
pub const OH_NATIVEXCOMPONENT_SOURCE_TYPE_KEYBOARD: OH_NativeXComponent_EventSourceType
Indicates that the input source generates a keyboard event.
Available since API-level: 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 duplicate 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