Struct xloop_android::android::view::MotionEvent
source · pub struct MotionEvent { /* private fields */ }
Implementations§
source§impl MotionEvent
impl MotionEvent
pub const ACTION_BUTTON_PRESS: i32 = 11i32
pub const ACTION_BUTTON_RELEASE: i32 = 12i32
pub const ACTION_CANCEL: i32 = 3i32
pub const ACTION_DOWN: i32 = 0i32
pub const ACTION_HOVER_ENTER: i32 = 9i32
pub const ACTION_HOVER_EXIT: i32 = 10i32
pub const ACTION_HOVER_MOVE: i32 = 7i32
pub const ACTION_MASK: i32 = 255i32
pub const ACTION_MOVE: i32 = 2i32
pub const ACTION_OUTSIDE: i32 = 4i32
pub const ACTION_POINTER_1_DOWN: i32 = 5i32
pub const ACTION_POINTER_1_UP: i32 = 6i32
pub const ACTION_POINTER_2_DOWN: i32 = 261i32
pub const ACTION_POINTER_2_UP: i32 = 262i32
pub const ACTION_POINTER_3_DOWN: i32 = 517i32
pub const ACTION_POINTER_3_UP: i32 = 518i32
pub const ACTION_POINTER_DOWN: i32 = 5i32
pub const ACTION_POINTER_ID_MASK: i32 = 65_280i32
pub const ACTION_POINTER_ID_SHIFT: i32 = 8i32
pub const ACTION_POINTER_INDEX_MASK: i32 = 65_280i32
pub const ACTION_POINTER_INDEX_SHIFT: i32 = 8i32
pub const ACTION_POINTER_UP: i32 = 6i32
pub const ACTION_SCROLL: i32 = 8i32
pub const ACTION_UP: i32 = 1i32
pub const AXIS_BRAKE: i32 = 23i32
pub const AXIS_DISTANCE: i32 = 24i32
pub const AXIS_GAS: i32 = 22i32
pub const AXIS_GENERIC_1: i32 = 32i32
pub const AXIS_GENERIC_10: i32 = 41i32
pub const AXIS_GENERIC_11: i32 = 42i32
pub const AXIS_GENERIC_12: i32 = 43i32
pub const AXIS_GENERIC_13: i32 = 44i32
pub const AXIS_GENERIC_14: i32 = 45i32
pub const AXIS_GENERIC_15: i32 = 46i32
pub const AXIS_GENERIC_16: i32 = 47i32
pub const AXIS_GENERIC_2: i32 = 33i32
pub const AXIS_GENERIC_3: i32 = 34i32
pub const AXIS_GENERIC_4: i32 = 35i32
pub const AXIS_GENERIC_5: i32 = 36i32
pub const AXIS_GENERIC_6: i32 = 37i32
pub const AXIS_GENERIC_7: i32 = 38i32
pub const AXIS_GENERIC_8: i32 = 39i32
pub const AXIS_GENERIC_9: i32 = 40i32
pub const AXIS_HAT_X: i32 = 15i32
pub const AXIS_HAT_Y: i32 = 16i32
pub const AXIS_HSCROLL: i32 = 10i32
pub const AXIS_LTRIGGER: i32 = 17i32
pub const AXIS_ORIENTATION: i32 = 8i32
pub const AXIS_PRESSURE: i32 = 2i32
pub const AXIS_RELATIVE_X: i32 = 27i32
pub const AXIS_RELATIVE_Y: i32 = 28i32
pub const AXIS_RTRIGGER: i32 = 18i32
pub const AXIS_RUDDER: i32 = 20i32
pub const AXIS_RX: i32 = 12i32
pub const AXIS_RY: i32 = 13i32
pub const AXIS_RZ: i32 = 14i32
pub const AXIS_SCROLL: i32 = 26i32
pub const AXIS_SIZE: i32 = 3i32
pub const AXIS_THROTTLE: i32 = 19i32
pub const AXIS_TILT: i32 = 25i32
pub const AXIS_TOOL_MAJOR: i32 = 6i32
pub const AXIS_TOOL_MINOR: i32 = 7i32
pub const AXIS_TOUCH_MAJOR: i32 = 4i32
pub const AXIS_TOUCH_MINOR: i32 = 5i32
pub const AXIS_VSCROLL: i32 = 9i32
pub const AXIS_WHEEL: i32 = 21i32
pub const AXIS_X: i32 = 0i32
pub const AXIS_Y: i32 = 1i32
pub const AXIS_Z: i32 = 11i32
pub const BUTTON_BACK: i32 = 8i32
pub const BUTTON_FORWARD: i32 = 16i32
pub const BUTTON_PRIMARY: i32 = 1i32
pub const BUTTON_SECONDARY: i32 = 2i32
pub const BUTTON_STYLUS_PRIMARY: i32 = 32i32
pub const BUTTON_STYLUS_SECONDARY: i32 = 64i32
pub const BUTTON_TERTIARY: i32 = 4i32
pub const CLASSIFICATION_AMBIGUOUS_GESTURE: i32 = 1i32
pub const CLASSIFICATION_DEEP_PRESS: i32 = 2i32
pub const CLASSIFICATION_NONE: i32 = 0i32
pub const EDGE_BOTTOM: i32 = 2i32
pub const EDGE_LEFT: i32 = 4i32
pub const EDGE_RIGHT: i32 = 8i32
pub const EDGE_TOP: i32 = 1i32
pub const FLAG_CANCELED: i32 = 32i32
pub const FLAG_WINDOW_IS_OBSCURED: i32 = 1i32
pub const FLAG_WINDOW_IS_PARTIALLY_OBSCURED: i32 = 2i32
pub const INVALID_POINTER_ID: i32 = -1i32
pub const TOOL_TYPE_ERASER: i32 = 4i32
pub const TOOL_TYPE_FINGER: i32 = 1i32
pub const TOOL_TYPE_MOUSE: i32 = 3i32
pub const TOOL_TYPE_STYLUS: i32 = 2i32
pub const TOOL_TYPE_UNKNOWN: i32 = 0i32
source§impl MotionEvent
impl MotionEvent
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>
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>
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>
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>
pub fn obtain_v5<'a>( env: &'a JEnv, arg0: JLong, arg1: JLong, arg2: JInt, arg3: JFloat, arg4: JFloat, arg5: JInt, ) -> Option<&'a MotionEvent>
pub fn obtain_v6<'a>( env: &'a JEnv, arg0: &'a MotionEvent, ) -> Option<&'a MotionEvent>
pub fn obtain_no_history<'a>( env: &'a JEnv, arg0: &'a MotionEvent, ) -> Option<&'a MotionEvent>
pub fn action_to_string<'a>(env: &'a JEnv, arg0: JInt) -> Option<&'a JString>
pub fn axis_to_string<'a>(env: &'a JEnv, arg0: JInt) -> Option<&'a JString>
pub fn axis_from_string<'a>(env: &'a JEnv, arg0: &'a JString) -> Option<JInt>
pub fn finalize<'a>(&'a self, env: &'a JEnv) -> Option<()>
pub fn recycle<'a>(&'a self, env: &'a JEnv) -> Option<()>
pub fn get_device_id<'a>(&'a self, env: &'a JEnv) -> Option<JInt>
pub fn get_source<'a>(&'a self, env: &'a JEnv) -> Option<JInt>
pub fn set_source<'a>(&'a self, env: &'a JEnv, arg0: JInt) -> Option<()>
pub fn get_action<'a>(&'a self, env: &'a JEnv) -> Option<JInt>
pub fn get_action_masked<'a>(&'a self, env: &'a JEnv) -> Option<JInt>
pub fn get_action_index<'a>(&'a self, env: &'a JEnv) -> Option<JInt>
pub fn get_flags<'a>(&'a self, env: &'a JEnv) -> Option<JInt>
pub fn get_down_time<'a>(&'a self, env: &'a JEnv) -> Option<JLong>
pub fn get_event_time<'a>(&'a self, env: &'a JEnv) -> Option<JLong>
pub fn get_x<'a>(&'a self, env: &'a JEnv) -> Option<JFloat>
pub fn get_y<'a>(&'a self, env: &'a JEnv) -> Option<JFloat>
pub fn get_pressure<'a>(&'a self, env: &'a JEnv) -> Option<JFloat>
pub fn get_size<'a>(&'a self, env: &'a JEnv) -> Option<JFloat>
pub fn get_touch_major<'a>(&'a self, env: &'a JEnv) -> Option<JFloat>
pub fn get_touch_minor<'a>(&'a self, env: &'a JEnv) -> Option<JFloat>
pub fn get_tool_major<'a>(&'a self, env: &'a JEnv) -> Option<JFloat>
pub fn get_tool_minor<'a>(&'a self, env: &'a JEnv) -> Option<JFloat>
pub fn get_orientation<'a>(&'a self, env: &'a JEnv) -> Option<JFloat>
pub fn get_axis_value<'a>(&'a self, env: &'a JEnv, arg0: JInt) -> Option<JFloat>
pub fn get_pointer_count<'a>(&'a self, env: &'a JEnv) -> Option<JInt>
pub fn get_pointer_id<'a>(&'a self, env: &'a JEnv, arg0: JInt) -> Option<JInt>
pub fn get_tool_type<'a>(&'a self, env: &'a JEnv, arg0: JInt) -> Option<JInt>
pub fn find_pointer_index<'a>( &'a self, env: &'a JEnv, arg0: JInt, ) -> Option<JInt>
pub fn get_x_v2<'a>(&'a self, env: &'a JEnv, arg0: JInt) -> Option<JFloat>
pub fn get_y_v2<'a>(&'a self, env: &'a JEnv, arg0: JInt) -> Option<JFloat>
pub fn get_pressure_v2<'a>( &'a self, env: &'a JEnv, arg0: JInt, ) -> Option<JFloat>
pub fn get_size_v2<'a>(&'a self, env: &'a JEnv, arg0: JInt) -> Option<JFloat>
pub fn get_touch_major_v2<'a>( &'a self, env: &'a JEnv, arg0: JInt, ) -> Option<JFloat>
pub fn get_touch_minor_v2<'a>( &'a self, env: &'a JEnv, arg0: JInt, ) -> Option<JFloat>
pub fn get_tool_major_v2<'a>( &'a self, env: &'a JEnv, arg0: JInt, ) -> Option<JFloat>
pub fn get_tool_minor_v2<'a>( &'a self, env: &'a JEnv, arg0: JInt, ) -> Option<JFloat>
pub fn get_orientation_v2<'a>( &'a self, env: &'a JEnv, arg0: JInt, ) -> Option<JFloat>
pub fn get_axis_value_v2<'a>( &'a self, env: &'a JEnv, arg0: JInt, arg1: JInt, ) -> Option<JFloat>
pub fn get_pointer_coords<'a>( &'a self, env: &'a JEnv, arg0: JInt, arg1: &'a JObject, ) -> Option<()>
pub fn get_pointer_properties<'a>( &'a self, env: &'a JEnv, arg0: JInt, arg1: &'a JObject, ) -> Option<()>
pub fn get_meta_state<'a>(&'a self, env: &'a JEnv) -> Option<JInt>
pub fn get_classification<'a>(&'a self, env: &'a JEnv) -> Option<JInt>
pub fn get_raw_x<'a>(&'a self, env: &'a JEnv) -> Option<JFloat>
pub fn get_raw_y<'a>(&'a self, env: &'a JEnv) -> Option<JFloat>
pub fn get_raw_x_v2<'a>(&'a self, env: &'a JEnv, arg0: JInt) -> Option<JFloat>
pub fn get_raw_y_v2<'a>(&'a self, env: &'a JEnv, arg0: JInt) -> Option<JFloat>
pub fn get_x_precision<'a>(&'a self, env: &'a JEnv) -> Option<JFloat>
pub fn get_y_precision<'a>(&'a self, env: &'a JEnv) -> Option<JFloat>
pub fn get_history_size<'a>(&'a self, env: &'a JEnv) -> Option<JInt>
pub fn get_historical_event_time<'a>( &'a self, env: &'a JEnv, arg0: JInt, ) -> Option<JLong>
pub fn get_historical_x<'a>( &'a self, env: &'a JEnv, arg0: JInt, ) -> Option<JFloat>
pub fn get_historical_y<'a>( &'a self, env: &'a JEnv, arg0: JInt, ) -> Option<JFloat>
pub fn get_historical_pressure<'a>( &'a self, env: &'a JEnv, arg0: JInt, ) -> Option<JFloat>
pub fn get_historical_size<'a>( &'a self, env: &'a JEnv, arg0: JInt, ) -> Option<JFloat>
pub fn get_historical_touch_major<'a>( &'a self, env: &'a JEnv, arg0: JInt, ) -> Option<JFloat>
pub fn get_historical_touch_minor<'a>( &'a self, env: &'a JEnv, arg0: JInt, ) -> Option<JFloat>
pub fn get_historical_tool_major<'a>( &'a self, env: &'a JEnv, arg0: JInt, ) -> Option<JFloat>
pub fn get_historical_tool_minor<'a>( &'a self, env: &'a JEnv, arg0: JInt, ) -> Option<JFloat>
pub fn get_historical_orientation<'a>( &'a self, env: &'a JEnv, arg0: JInt, ) -> Option<JFloat>
pub fn get_historical_axis_value<'a>( &'a self, env: &'a JEnv, arg0: JInt, arg1: JInt, ) -> Option<JFloat>
pub fn get_historical_x_v2<'a>( &'a self, env: &'a JEnv, arg0: JInt, arg1: JInt, ) -> Option<JFloat>
pub fn get_historical_y_v2<'a>( &'a self, env: &'a JEnv, arg0: JInt, arg1: JInt, ) -> Option<JFloat>
pub fn get_historical_pressure_v2<'a>( &'a self, env: &'a JEnv, arg0: JInt, arg1: JInt, ) -> Option<JFloat>
pub fn get_historical_size_v2<'a>( &'a self, env: &'a JEnv, arg0: JInt, arg1: JInt, ) -> Option<JFloat>
pub fn get_historical_touch_major_v2<'a>( &'a self, env: &'a JEnv, arg0: JInt, arg1: JInt, ) -> Option<JFloat>
pub fn get_historical_touch_minor_v2<'a>( &'a self, env: &'a JEnv, arg0: JInt, arg1: JInt, ) -> Option<JFloat>
pub fn get_historical_tool_major_v2<'a>( &'a self, env: &'a JEnv, arg0: JInt, arg1: JInt, ) -> Option<JFloat>
pub fn get_historical_tool_minor_v2<'a>( &'a self, env: &'a JEnv, arg0: JInt, arg1: JInt, ) -> Option<JFloat>
pub fn get_historical_orientation_v2<'a>( &'a self, env: &'a JEnv, arg0: JInt, arg1: JInt, ) -> Option<JFloat>
pub fn get_historical_axis_value_v2<'a>( &'a self, env: &'a JEnv, arg0: JInt, arg1: JInt, arg2: JInt, ) -> Option<JFloat>
pub fn get_historical_pointer_coords<'a>( &'a self, env: &'a JEnv, arg0: JInt, arg1: JInt, arg2: &'a JObject, ) -> Option<()>
pub fn get_edge_flags<'a>(&'a self, env: &'a JEnv) -> Option<JInt>
pub fn set_edge_flags<'a>(&'a self, env: &'a JEnv, arg0: JInt) -> Option<()>
pub fn set_action<'a>(&'a self, env: &'a JEnv, arg0: JInt) -> Option<()>
pub fn offset_location<'a>( &'a self, env: &'a JEnv, arg0: JFloat, arg1: JFloat, ) -> Option<()>
pub fn set_location<'a>( &'a self, env: &'a JEnv, arg0: JFloat, arg1: JFloat, ) -> Option<()>
pub fn transform<'a>(&'a self, env: &'a JEnv, arg0: &'a JObject) -> Option<()>
pub fn add_batch<'a>( &'a self, env: &'a JEnv, arg0: JLong, arg1: JFloat, arg2: JFloat, arg3: JFloat, arg4: JFloat, arg5: JInt, ) -> Option<()>
pub fn add_batch_v2<'a>( &'a self, env: &'a JEnv, arg0: JLong, arg1: &'a JArrayObject<JObject>, arg2: JInt, ) -> Option<()>
pub fn to_string<'a>(&'a self, env: &'a JEnv) -> Option<&'a JString>
pub fn write_to_parcel<'a>( &'a self, env: &'a JEnv, arg0: &'a JObject, arg1: JInt, ) -> Option<()>
Methods from Deref<Target = InputEvent>§
pub fn get_device_id<'a>(&'a self, env: &'a JEnv) -> Option<JInt>
pub fn get_device<'a>(&'a self, env: &'a JEnv) -> Option<&'a JObject>
pub fn get_source<'a>(&'a self, env: &'a JEnv) -> Option<JInt>
pub fn is_from_source<'a>(&'a self, env: &'a JEnv, arg0: JInt) -> Option<JBool>
pub fn get_event_time<'a>(&'a self, env: &'a JEnv) -> Option<JLong>
pub fn describe_contents<'a>(&'a self, env: &'a JEnv) -> Option<JInt>
Methods from Deref<Target = JObject>§
pub fn as_sys(&self) -> *mut _jobject
pub fn cast<T>(&self, env: &JEnv) -> Option<&T>where
T: JPlainMarker,
pub unsafe fn cast_unchecked<T>(&self) -> Option<&T>where
T: JPlainMarker,
pub fn class(&self, env: &JEnv) -> Option<JClassID>
Trait Implementations§
source§impl AsRef<InputEvent> for MotionEvent
impl AsRef<InputEvent> for MotionEvent
source§fn as_ref(&self) -> &InputEvent
fn as_ref(&self) -> &InputEvent
Converts this type into a shared reference of the (usually inferred) input type.
source§impl AsRef<JObject> for MotionEvent
impl AsRef<JObject> for MotionEvent
source§impl AsRef<ParcelableObject> for MotionEvent
impl AsRef<ParcelableObject> for MotionEvent
source§fn as_ref(&self) -> &ParcelableObject
fn as_ref(&self) -> &ParcelableObject
Converts this type into a shared reference of the (usually inferred) input type.
source§impl Deref for MotionEvent
impl Deref for MotionEvent
source§impl JNameMaker for MotionEvent
impl JNameMaker for MotionEvent
source§impl JPlainMarker for MotionEvent
impl JPlainMarker for MotionEvent
fn class(env: Option<&JEnv>) -> Option<JClassID>
fn new_with<const N: usize>( env: &JEnv, method: JMethodID, args: impl AsJValueArray<N>, ) -> Option<&Self>
fn instance_of(&self, class: JClassID, env: &JEnv) -> bool
fn is_eq(&self, other: &Self, env: &JEnv) -> bool
fn ref_type(&self, env: &JEnv) -> jobjectRefType
fn local<'a, 'b>(&'a self, env: &'b JEnv) -> Option<JLocal<'a, Self>>where
'b: 'a,
fn weak(&self, env: &JEnv) -> Option<JWeak<Self>>
fn global(&self, env: &JEnv) -> Option<JRc<Self>>
source§impl Parcelable for MotionEvent
impl Parcelable for MotionEvent
const CONTENTS_FILE_DESCRIPTOR: i32 = 1i32
const PARCELABLE_WRITE_RETURN_VALUE: i32 = 1i32
fn parcelable_class(env: Option<&JEnv>) -> Option<JClassID>
fn describe_contents<'a>(&'a self, env: &'a JEnv) -> Option<JInt>
fn write_to_parcel<'a>( &'a self, env: &'a JEnv, arg0: &'a JObject, arg1: JInt, ) -> Option<()>
Auto Trait Implementations§
impl Freeze for MotionEvent
impl RefUnwindSafe for MotionEvent
impl Send for MotionEvent
impl Sync for MotionEvent
impl Unpin for MotionEvent
impl UnwindSafe for MotionEvent
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