Struct android_activity::input::Pointer
source · pub struct Pointer<'a> { /* private fields */ }
Expand description
A view into the data of a specific pointer in a motion event.
Implementations§
source§impl<'a> Pointer<'a>
impl<'a> Pointer<'a>
pub fn pointer_index(&self) -> usize
pub fn pointer_id(&self) -> i32
pub fn axis_value(&self, axis: Axis) -> f32
pub fn orientation(&self) -> f32
pub fn pressure(&self) -> f32
pub fn raw_x(&self) -> f32
pub fn raw_y(&self) -> f32
pub fn x(&self) -> f32
pub fn y(&self) -> f32
pub fn size(&self) -> f32
pub fn tool_major(&self) -> f32
pub fn tool_minor(&self) -> f32
pub fn touch_major(&self) -> f32
pub fn touch_minor(&self) -> f32
pub fn tool_type(&self) -> ToolType
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Pointer<'a>
impl<'a> RefUnwindSafe for Pointer<'a>
impl<'a> !Send for Pointer<'a>
impl<'a> !Sync for Pointer<'a>
impl<'a> Unpin for Pointer<'a>
impl<'a> UnwindSafe for Pointer<'a>
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