Struct xloop_android::android::view::MotionEvent

source ·
pub struct MotionEvent { /* private fields */ }

Implementations§

source§

impl MotionEvent

source

pub const ACTION_BUTTON_PRESS: i32 = 11i32

source

pub const ACTION_BUTTON_RELEASE: i32 = 12i32

source

pub const ACTION_CANCEL: i32 = 3i32

source

pub const ACTION_DOWN: i32 = 0i32

source

pub const ACTION_HOVER_ENTER: i32 = 9i32

source

pub const ACTION_HOVER_EXIT: i32 = 10i32

source

pub const ACTION_HOVER_MOVE: i32 = 7i32

source

pub const ACTION_MASK: i32 = 255i32

source

pub const ACTION_MOVE: i32 = 2i32

source

pub const ACTION_OUTSIDE: i32 = 4i32

source

pub const ACTION_POINTER_1_DOWN: i32 = 5i32

source

pub const ACTION_POINTER_1_UP: i32 = 6i32

source

pub const ACTION_POINTER_2_DOWN: i32 = 261i32

source

pub const ACTION_POINTER_2_UP: i32 = 262i32

source

pub const ACTION_POINTER_3_DOWN: i32 = 517i32

source

pub const ACTION_POINTER_3_UP: i32 = 518i32

source

pub const ACTION_POINTER_DOWN: i32 = 5i32

source

pub const ACTION_POINTER_ID_MASK: i32 = 65_280i32

source

pub const ACTION_POINTER_ID_SHIFT: i32 = 8i32

source

pub const ACTION_POINTER_INDEX_MASK: i32 = 65_280i32

source

pub const ACTION_POINTER_INDEX_SHIFT: i32 = 8i32

source

pub const ACTION_POINTER_UP: i32 = 6i32

source

pub const ACTION_SCROLL: i32 = 8i32

source

pub const ACTION_UP: i32 = 1i32

source

pub const AXIS_BRAKE: i32 = 23i32

source

pub const AXIS_DISTANCE: i32 = 24i32

source

pub const AXIS_GAS: i32 = 22i32

source

pub const AXIS_GENERIC_1: i32 = 32i32

source

pub const AXIS_GENERIC_10: i32 = 41i32

source

pub const AXIS_GENERIC_11: i32 = 42i32

source

pub const AXIS_GENERIC_12: i32 = 43i32

source

pub const AXIS_GENERIC_13: i32 = 44i32

source

pub const AXIS_GENERIC_14: i32 = 45i32

source

pub const AXIS_GENERIC_15: i32 = 46i32

source

pub const AXIS_GENERIC_16: i32 = 47i32

source

pub const AXIS_GENERIC_2: i32 = 33i32

source

pub const AXIS_GENERIC_3: i32 = 34i32

source

pub const AXIS_GENERIC_4: i32 = 35i32

source

pub const AXIS_GENERIC_5: i32 = 36i32

source

pub const AXIS_GENERIC_6: i32 = 37i32

source

pub const AXIS_GENERIC_7: i32 = 38i32

source

pub const AXIS_GENERIC_8: i32 = 39i32

source

pub const AXIS_GENERIC_9: i32 = 40i32

source

pub const AXIS_HAT_X: i32 = 15i32

source

pub const AXIS_HAT_Y: i32 = 16i32

source

pub const AXIS_HSCROLL: i32 = 10i32

source

pub const AXIS_LTRIGGER: i32 = 17i32

source

pub const AXIS_ORIENTATION: i32 = 8i32

source

pub const AXIS_PRESSURE: i32 = 2i32

source

pub const AXIS_RELATIVE_X: i32 = 27i32

source

pub const AXIS_RELATIVE_Y: i32 = 28i32

source

pub const AXIS_RTRIGGER: i32 = 18i32

source

pub const AXIS_RUDDER: i32 = 20i32

source

pub const AXIS_RX: i32 = 12i32

source

pub const AXIS_RY: i32 = 13i32

source

pub const AXIS_RZ: i32 = 14i32

source

pub const AXIS_SCROLL: i32 = 26i32

source

pub const AXIS_SIZE: i32 = 3i32

source

pub const AXIS_THROTTLE: i32 = 19i32

source

pub const AXIS_TILT: i32 = 25i32

source

pub const AXIS_TOOL_MAJOR: i32 = 6i32

source

pub const AXIS_TOOL_MINOR: i32 = 7i32

source

pub const AXIS_TOUCH_MAJOR: i32 = 4i32

source

pub const AXIS_TOUCH_MINOR: i32 = 5i32

source

pub const AXIS_VSCROLL: i32 = 9i32

source

pub const AXIS_WHEEL: i32 = 21i32

source

pub const AXIS_X: i32 = 0i32

source

pub const AXIS_Y: i32 = 1i32

source

pub const AXIS_Z: i32 = 11i32

source

pub const BUTTON_BACK: i32 = 8i32

source

pub const BUTTON_FORWARD: i32 = 16i32

source

pub const BUTTON_PRIMARY: i32 = 1i32

source

pub const BUTTON_SECONDARY: i32 = 2i32

source

pub const BUTTON_STYLUS_PRIMARY: i32 = 32i32

source

pub const BUTTON_STYLUS_SECONDARY: i32 = 64i32

source

pub const BUTTON_TERTIARY: i32 = 4i32

source

pub const CLASSIFICATION_AMBIGUOUS_GESTURE: i32 = 1i32

source

pub const CLASSIFICATION_DEEP_PRESS: i32 = 2i32

source

pub const CLASSIFICATION_NONE: i32 = 0i32

source

pub const EDGE_BOTTOM: i32 = 2i32

source

pub const EDGE_LEFT: i32 = 4i32

source

pub const EDGE_RIGHT: i32 = 8i32

source

pub const EDGE_TOP: i32 = 1i32

source

pub const FLAG_CANCELED: i32 = 32i32

source

pub const FLAG_WINDOW_IS_OBSCURED: i32 = 1i32

source

pub const FLAG_WINDOW_IS_PARTIALLY_OBSCURED: i32 = 2i32

source

pub const INVALID_POINTER_ID: i32 = -1i32

source

pub const TOOL_TYPE_ERASER: i32 = 4i32

source

pub const TOOL_TYPE_FINGER: i32 = 1i32

source

pub const TOOL_TYPE_MOUSE: i32 = 3i32

source

pub const TOOL_TYPE_STYLUS: i32 = 2i32

source

pub const TOOL_TYPE_UNKNOWN: i32 = 0i32

source§

impl MotionEvent

source

pub fn obtain<'a>( env: &'a JEnv, arg0: JLong, arg1: JLong, arg2: JInt, arg3: JInt, arg4: &'a JArrayObject<JObject>, arg5: &'a JArrayObject<JObject>, arg6: JInt, arg7: JInt, arg8: JFloat, arg9: JFloat, arg10: JInt, arg11: JInt, arg12: JInt, arg13: JInt, ) -> Option<&'a MotionEvent>

source

pub fn obtain_v2<'a>( env: &'a JEnv, arg0: JLong, arg1: JLong, arg2: JInt, arg3: JInt, arg4: &'a JArrayPrim<JInt>, arg5: &'a JArrayObject<JObject>, arg6: JInt, arg7: JFloat, arg8: JFloat, arg9: JInt, arg10: JInt, arg11: JInt, arg12: JInt, ) -> Option<&'a MotionEvent>

source

pub fn obtain_v3<'a>( env: &'a JEnv, arg0: JLong, arg1: JLong, arg2: JInt, arg3: JFloat, arg4: JFloat, arg5: JFloat, arg6: JFloat, arg7: JInt, arg8: JFloat, arg9: JFloat, arg10: JInt, arg11: JInt, ) -> Option<&'a MotionEvent>

source

pub fn obtain_v4<'a>( env: &'a JEnv, arg0: JLong, arg1: JLong, arg2: JInt, arg3: JInt, arg4: JFloat, arg5: JFloat, arg6: JFloat, arg7: JFloat, arg8: JInt, arg9: JFloat, arg10: JFloat, arg11: JInt, arg12: JInt, ) -> Option<&'a MotionEvent>

source

pub fn obtain_v5<'a>( env: &'a JEnv, arg0: JLong, arg1: JLong, arg2: JInt, arg3: JFloat, arg4: JFloat, arg5: JInt, ) -> Option<&'a MotionEvent>

source

pub fn obtain_v6<'a>( env: &'a JEnv, arg0: &'a MotionEvent, ) -> Option<&'a MotionEvent>

source

pub fn obtain_no_history<'a>( env: &'a JEnv, arg0: &'a MotionEvent, ) -> Option<&'a MotionEvent>

source

pub fn action_to_string<'a>(env: &'a JEnv, arg0: JInt) -> Option<&'a JString>

source

pub fn axis_to_string<'a>(env: &'a JEnv, arg0: JInt) -> Option<&'a JString>

source

pub fn axis_from_string<'a>(env: &'a JEnv, arg0: &'a JString) -> Option<JInt>

source

pub fn finalize<'a>(&'a self, env: &'a JEnv) -> Option<()>

source

pub fn recycle<'a>(&'a self, env: &'a JEnv) -> Option<()>

source

pub fn get_device_id<'a>(&'a self, env: &'a JEnv) -> Option<JInt>

source

pub fn get_source<'a>(&'a self, env: &'a JEnv) -> Option<JInt>

source

pub fn set_source<'a>(&'a self, env: &'a JEnv, arg0: JInt) -> Option<()>

source

pub fn get_action<'a>(&'a self, env: &'a JEnv) -> Option<JInt>

source

pub fn get_action_masked<'a>(&'a self, env: &'a JEnv) -> Option<JInt>

source

pub fn get_action_index<'a>(&'a self, env: &'a JEnv) -> Option<JInt>

source

pub fn get_flags<'a>(&'a self, env: &'a JEnv) -> Option<JInt>

source

pub fn get_down_time<'a>(&'a self, env: &'a JEnv) -> Option<JLong>

source

pub fn get_event_time<'a>(&'a self, env: &'a JEnv) -> Option<JLong>

source

pub fn get_x<'a>(&'a self, env: &'a JEnv) -> Option<JFloat>

source

pub fn get_y<'a>(&'a self, env: &'a JEnv) -> Option<JFloat>

source

pub fn get_pressure<'a>(&'a self, env: &'a JEnv) -> Option<JFloat>

source

pub fn get_size<'a>(&'a self, env: &'a JEnv) -> Option<JFloat>

source

pub fn get_touch_major<'a>(&'a self, env: &'a JEnv) -> Option<JFloat>

source

pub fn get_touch_minor<'a>(&'a self, env: &'a JEnv) -> Option<JFloat>

source

pub fn get_tool_major<'a>(&'a self, env: &'a JEnv) -> Option<JFloat>

source

pub fn get_tool_minor<'a>(&'a self, env: &'a JEnv) -> Option<JFloat>

source

pub fn get_orientation<'a>(&'a self, env: &'a JEnv) -> Option<JFloat>

source

pub fn get_axis_value<'a>(&'a self, env: &'a JEnv, arg0: JInt) -> Option<JFloat>

source

pub fn get_pointer_count<'a>(&'a self, env: &'a JEnv) -> Option<JInt>

source

pub fn get_pointer_id<'a>(&'a self, env: &'a JEnv, arg0: JInt) -> Option<JInt>

source

pub fn get_tool_type<'a>(&'a self, env: &'a JEnv, arg0: JInt) -> Option<JInt>

source

pub fn find_pointer_index<'a>( &'a self, env: &'a JEnv, arg0: JInt, ) -> Option<JInt>

source

pub fn get_x_v2<'a>(&'a self, env: &'a JEnv, arg0: JInt) -> Option<JFloat>

source

pub fn get_y_v2<'a>(&'a self, env: &'a JEnv, arg0: JInt) -> Option<JFloat>

source

pub fn get_pressure_v2<'a>( &'a self, env: &'a JEnv, arg0: JInt, ) -> Option<JFloat>

source

pub fn get_size_v2<'a>(&'a self, env: &'a JEnv, arg0: JInt) -> Option<JFloat>

source

pub fn get_touch_major_v2<'a>( &'a self, env: &'a JEnv, arg0: JInt, ) -> Option<JFloat>

source

pub fn get_touch_minor_v2<'a>( &'a self, env: &'a JEnv, arg0: JInt, ) -> Option<JFloat>

source

pub fn get_tool_major_v2<'a>( &'a self, env: &'a JEnv, arg0: JInt, ) -> Option<JFloat>

source

pub fn get_tool_minor_v2<'a>( &'a self, env: &'a JEnv, arg0: JInt, ) -> Option<JFloat>

source

pub fn get_orientation_v2<'a>( &'a self, env: &'a JEnv, arg0: JInt, ) -> Option<JFloat>

source

pub fn get_axis_value_v2<'a>( &'a self, env: &'a JEnv, arg0: JInt, arg1: JInt, ) -> Option<JFloat>

source

pub fn get_pointer_coords<'a>( &'a self, env: &'a JEnv, arg0: JInt, arg1: &'a JObject, ) -> Option<()>

source

pub fn get_pointer_properties<'a>( &'a self, env: &'a JEnv, arg0: JInt, arg1: &'a JObject, ) -> Option<()>

source

pub fn get_meta_state<'a>(&'a self, env: &'a JEnv) -> Option<JInt>

source

pub fn get_button_state<'a>(&'a self, env: &'a JEnv) -> Option<JInt>

source

pub fn get_classification<'a>(&'a self, env: &'a JEnv) -> Option<JInt>

source

pub fn get_action_button<'a>(&'a self, env: &'a JEnv) -> Option<JInt>

source

pub fn get_raw_x<'a>(&'a self, env: &'a JEnv) -> Option<JFloat>

source

pub fn get_raw_y<'a>(&'a self, env: &'a JEnv) -> Option<JFloat>

source

pub fn get_raw_x_v2<'a>(&'a self, env: &'a JEnv, arg0: JInt) -> Option<JFloat>

source

pub fn get_raw_y_v2<'a>(&'a self, env: &'a JEnv, arg0: JInt) -> Option<JFloat>

source

pub fn get_x_precision<'a>(&'a self, env: &'a JEnv) -> Option<JFloat>

source

pub fn get_y_precision<'a>(&'a self, env: &'a JEnv) -> Option<JFloat>

source

pub fn get_history_size<'a>(&'a self, env: &'a JEnv) -> Option<JInt>

source

pub fn get_historical_event_time<'a>( &'a self, env: &'a JEnv, arg0: JInt, ) -> Option<JLong>

source

pub fn get_historical_x<'a>( &'a self, env: &'a JEnv, arg0: JInt, ) -> Option<JFloat>

source

pub fn get_historical_y<'a>( &'a self, env: &'a JEnv, arg0: JInt, ) -> Option<JFloat>

source

pub fn get_historical_pressure<'a>( &'a self, env: &'a JEnv, arg0: JInt, ) -> Option<JFloat>

source

pub fn get_historical_size<'a>( &'a self, env: &'a JEnv, arg0: JInt, ) -> Option<JFloat>

source

pub fn get_historical_touch_major<'a>( &'a self, env: &'a JEnv, arg0: JInt, ) -> Option<JFloat>

source

pub fn get_historical_touch_minor<'a>( &'a self, env: &'a JEnv, arg0: JInt, ) -> Option<JFloat>

source

pub fn get_historical_tool_major<'a>( &'a self, env: &'a JEnv, arg0: JInt, ) -> Option<JFloat>

source

pub fn get_historical_tool_minor<'a>( &'a self, env: &'a JEnv, arg0: JInt, ) -> Option<JFloat>

source

pub fn get_historical_orientation<'a>( &'a self, env: &'a JEnv, arg0: JInt, ) -> Option<JFloat>

source

pub fn get_historical_axis_value<'a>( &'a self, env: &'a JEnv, arg0: JInt, arg1: JInt, ) -> Option<JFloat>

source

pub fn get_historical_x_v2<'a>( &'a self, env: &'a JEnv, arg0: JInt, arg1: JInt, ) -> Option<JFloat>

source

pub fn get_historical_y_v2<'a>( &'a self, env: &'a JEnv, arg0: JInt, arg1: JInt, ) -> Option<JFloat>

source

pub fn get_historical_pressure_v2<'a>( &'a self, env: &'a JEnv, arg0: JInt, arg1: JInt, ) -> Option<JFloat>

source

pub fn get_historical_size_v2<'a>( &'a self, env: &'a JEnv, arg0: JInt, arg1: JInt, ) -> Option<JFloat>

source

pub fn get_historical_touch_major_v2<'a>( &'a self, env: &'a JEnv, arg0: JInt, arg1: JInt, ) -> Option<JFloat>

source

pub fn get_historical_touch_minor_v2<'a>( &'a self, env: &'a JEnv, arg0: JInt, arg1: JInt, ) -> Option<JFloat>

source

pub fn get_historical_tool_major_v2<'a>( &'a self, env: &'a JEnv, arg0: JInt, arg1: JInt, ) -> Option<JFloat>

source

pub fn get_historical_tool_minor_v2<'a>( &'a self, env: &'a JEnv, arg0: JInt, arg1: JInt, ) -> Option<JFloat>

source

pub fn get_historical_orientation_v2<'a>( &'a self, env: &'a JEnv, arg0: JInt, arg1: JInt, ) -> Option<JFloat>

source

pub fn get_historical_axis_value_v2<'a>( &'a self, env: &'a JEnv, arg0: JInt, arg1: JInt, arg2: JInt, ) -> Option<JFloat>

source

pub fn get_historical_pointer_coords<'a>( &'a self, env: &'a JEnv, arg0: JInt, arg1: JInt, arg2: &'a JObject, ) -> Option<()>

source

pub fn get_edge_flags<'a>(&'a self, env: &'a JEnv) -> Option<JInt>

source

pub fn set_edge_flags<'a>(&'a self, env: &'a JEnv, arg0: JInt) -> Option<()>

source

pub fn set_action<'a>(&'a self, env: &'a JEnv, arg0: JInt) -> Option<()>

source

pub fn offset_location<'a>( &'a self, env: &'a JEnv, arg0: JFloat, arg1: JFloat, ) -> Option<()>

source

pub fn set_location<'a>( &'a self, env: &'a JEnv, arg0: JFloat, arg1: JFloat, ) -> Option<()>

source

pub fn transform<'a>(&'a self, env: &'a JEnv, arg0: &'a JObject) -> Option<()>

source

pub fn add_batch<'a>( &'a self, env: &'a JEnv, arg0: JLong, arg1: JFloat, arg2: JFloat, arg3: JFloat, arg4: JFloat, arg5: JInt, ) -> Option<()>

source

pub fn add_batch_v2<'a>( &'a self, env: &'a JEnv, arg0: JLong, arg1: &'a JArrayObject<JObject>, arg2: JInt, ) -> Option<()>

source

pub fn to_string<'a>(&'a self, env: &'a JEnv) -> Option<&'a JString>

source

pub fn is_button_pressed<'a>( &'a self, env: &'a JEnv, arg0: JInt, ) -> Option<JBool>

source

pub fn write_to_parcel<'a>( &'a self, env: &'a JEnv, arg0: &'a JObject, arg1: JInt, ) -> Option<()>

Methods from Deref<Target = InputEvent>§

source

pub fn get_device_id<'a>(&'a self, env: &'a JEnv) -> Option<JInt>

source

pub fn get_device<'a>(&'a self, env: &'a JEnv) -> Option<&'a JObject>

source

pub fn get_source<'a>(&'a self, env: &'a JEnv) -> Option<JInt>

source

pub fn is_from_source<'a>(&'a self, env: &'a JEnv, arg0: JInt) -> Option<JBool>

source

pub fn get_event_time<'a>(&'a self, env: &'a JEnv) -> Option<JLong>

source

pub fn describe_contents<'a>(&'a self, env: &'a JEnv) -> Option<JInt>

Methods from Deref<Target = JObject>§

source

pub fn as_sys(&self) -> *mut _jobject

source

pub fn cast<T>(&self, env: &JEnv) -> Option<&T>
where T: JPlainMarker,

source

pub unsafe fn cast_unchecked<T>(&self) -> Option<&T>
where T: JPlainMarker,

source

pub fn class(&self, env: &JEnv) -> Option<JClassID>

Trait Implementations§

source§

impl AsRef<InputEvent> for MotionEvent

source§

fn as_ref(&self) -> &InputEvent

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<JObject> for MotionEvent

source§

fn as_ref(&self) -> &JObject

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<ParcelableObject> for MotionEvent

source§

fn as_ref(&self) -> &ParcelableObject

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl Deref for MotionEvent

§

type Target = InputEvent

The resulting type after dereferencing.
source§

fn deref(&self) -> &Self::Target

Dereferences the value.
source§

impl JNameMaker for MotionEvent

source§

const JAVA_PATH: &'static [u8] = b"android/view/MotionEvent\0"

source§

fn java_path() -> Option<&'static str>

source§

impl JPlainMarker for MotionEvent

source§

fn class(env: Option<&JEnv>) -> Option<JClassID>

source§

fn new_with<const N: usize>( env: &JEnv, method: JMethodID, args: impl AsJValueArray<N>, ) -> Option<&Self>

source§

fn instance_of(&self, class: JClassID, env: &JEnv) -> bool

source§

fn is_eq(&self, other: &Self, env: &JEnv) -> bool

source§

fn ref_type(&self, env: &JEnv) -> jobjectRefType

source§

fn local<'a, 'b>(&'a self, env: &'b JEnv) -> Option<JLocal<'a, Self>>
where 'b: 'a,

source§

fn weak(&self, env: &JEnv) -> Option<JWeak<Self>>

source§

fn global(&self, env: &JEnv) -> Option<JRc<Self>>

source§

impl Parcelable for MotionEvent

source§

const CONTENTS_FILE_DESCRIPTOR: i32 = 1i32

source§

const PARCELABLE_WRITE_RETURN_VALUE: i32 = 1i32

source§

fn parcelable_class(env: Option<&JEnv>) -> Option<JClassID>

source§

fn describe_contents<'a>(&'a self, env: &'a JEnv) -> Option<JInt>

source§

fn write_to_parcel<'a>( &'a self, env: &'a JEnv, arg0: &'a JObject, arg1: JInt, ) -> Option<()>

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.