Enum android_activity::input::MotionAction
source · 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.