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
sourceimpl Clone for MotionAction
impl Clone for MotionAction
sourcefn clone(&self) -> MotionAction
fn clone(&self) -> MotionAction
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for MotionAction
impl Debug for MotionAction
sourceimpl PartialEq<MotionAction> for MotionAction
impl PartialEq<MotionAction> for MotionAction
sourcefn 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 ==. Read more
sourceimpl 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.
sourcefn try_from(
number: u32
) -> Result<MotionAction, TryFromPrimitiveError<MotionAction>>
fn try_from(
number: u32
) -> Result<MotionAction, TryFromPrimitiveError<MotionAction>>
Performs the conversion.
sourceimpl 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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more