pub enum TouchEvent {
Down,
Up,
Move,
Cancel,
Unknown,
}Variants§
Implementations§
Source§impl TouchEvent
impl TouchEvent
pub fn try_from_raw(attr: OH_NativeXComponent_TouchEventType) -> Option<Self>
Trait Implementations§
Source§impl Clone for TouchEvent
impl Clone for TouchEvent
Source§fn clone(&self) -> TouchEvent
fn clone(&self) -> TouchEvent
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 Debug for TouchEvent
impl Debug for TouchEvent
Source§impl From<TouchEvent> for OH_NativeXComponent_TouchEventType
impl From<TouchEvent> for OH_NativeXComponent_TouchEventType
Source§fn from(attr: TouchEvent) -> Self
fn from(attr: TouchEvent) -> Self
Converts to this type from the input type.
Source§impl From<u32> for TouchEvent
impl From<u32> for TouchEvent
Source§fn from(attr: OH_NativeXComponent_TouchEventType) -> Self
fn from(attr: OH_NativeXComponent_TouchEventType) -> Self
Converts to this type from the input type.
Source§impl PartialEq for TouchEvent
impl PartialEq for TouchEvent
Source§fn eq(&self, other: &TouchEvent) -> bool
fn eq(&self, other: &TouchEvent) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for TouchEvent
impl Eq for TouchEvent
impl StructuralPartialEq for TouchEvent
Auto Trait Implementations§
impl Freeze for TouchEvent
impl RefUnwindSafe for TouchEvent
impl Send for TouchEvent
impl Sync for TouchEvent
impl Unpin for TouchEvent
impl UnsafeUnpin for TouchEvent
impl UnwindSafe for TouchEvent
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