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