#[repr(u32)]pub enum MotionAction {
Show 13 variants
Down = 0,
Up = 1,
Move = 2,
Cancel = 3,
Outside = 4,
PointerDown = 5,
PointerUp = 6,
HoverMove = 7,
Scroll = 8,
HoverEnter = 9,
HoverExit = 10,
ButtonPress = 11,
ButtonRelease = 12,
}
Expand description
A motion action.
See the NDK docs
Variants§
Down = 0
Up = 1
Move = 2
Cancel = 3
Outside = 4
PointerDown = 5
PointerUp = 6
HoverMove = 7
Scroll = 8
HoverEnter = 9
HoverExit = 10
ButtonPress = 11
ButtonRelease = 12
Trait Implementations§
Source§impl Clone for MotionAction
impl Clone for MotionAction
Source§fn clone(&self) -> MotionAction
fn clone(&self) -> MotionAction
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 Debug for MotionAction
impl Debug for MotionAction
Source§impl From<MotionAction> for u32
impl From<MotionAction> for u32
Source§fn from(number: MotionAction) -> Self
fn from(number: MotionAction) -> Self
Converts to this type from the input type.
Source§impl PartialEq for MotionAction
impl PartialEq for MotionAction
Source§impl TryFrom<u32> for MotionAction
impl TryFrom<u32> for MotionAction
impl Copy for MotionAction
impl Eq for MotionAction
impl StructuralPartialEq for MotionAction
Auto Trait Implementations§
impl Freeze for MotionAction
impl RefUnwindSafe for MotionAction
impl Send for MotionAction
impl Sync for MotionAction
impl Unpin for MotionAction
impl UnwindSafe for MotionAction
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§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more