Enum android_activity::input::MotionAction
source · #[repr(u32)]pub enum MotionAction {
Show 13 variants
Down,
Up,
Move,
Cancel,
Outside,
PointerDown,
PointerUp,
HoverMove,
Scroll,
HoverEnter,
HoverExit,
ButtonPress,
ButtonRelease,
}
Expand description
A motion action.
See the NDK docs
Variants§
Down
Up
Move
Cancel
Outside
PointerDown
PointerUp
HoverMove
Scroll
HoverEnter
HoverExit
ButtonPress
ButtonRelease
Trait Implementations§
source§impl Clone for MotionAction
impl Clone for MotionAction
source§fn clone(&self) -> MotionAction
fn clone(&self) -> MotionAction
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 Debug for MotionAction
impl Debug for MotionAction
source§impl PartialEq<MotionAction> for MotionAction
impl PartialEq<MotionAction> for MotionAction
source§fn eq(&self, other: &MotionAction) -> bool
fn eq(&self, other: &MotionAction) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl TryFrom<u32> for MotionAction
impl TryFrom<u32> for MotionAction
§type Error = TryFromPrimitiveError<MotionAction>
type Error = TryFromPrimitiveError<MotionAction>
The type returned in the event of a conversion error.
source§fn try_from(
number: u32
) -> Result<MotionAction, TryFromPrimitiveError<MotionAction>>
fn try_from( number: u32 ) -> Result<MotionAction, TryFromPrimitiveError<MotionAction>>
Performs the conversion.
source§impl TryFromPrimitive for MotionAction
impl TryFromPrimitive for MotionAction
type Primitive = u32
const NAME: &'static str = "MotionAction"
fn try_from_primitive( number: <MotionAction as TryFromPrimitive>::Primitive ) -> Result<MotionAction, TryFromPrimitiveError<MotionAction>>
impl Copy for MotionAction
impl Eq for MotionAction
impl StructuralEq for MotionAction
impl StructuralPartialEq for MotionAction
Auto Trait Implementations§
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