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>

source

pub fn pointer_index(&self) -> usize

source

pub fn pointer_id(&self) -> i32

source

pub fn axis_value(&self, axis: Axis) -> f32

source

pub fn orientation(&self) -> f32

source

pub fn pressure(&self) -> f32

source

pub fn raw_x(&self) -> f32

source

pub fn raw_y(&self) -> f32

source

pub fn x(&self) -> f32

source

pub fn y(&self) -> f32

source

pub fn size(&self) -> f32

source

pub fn tool_major(&self) -> f32

source

pub fn tool_minor(&self) -> f32

source

pub fn touch_major(&self) -> f32

source

pub fn touch_minor(&self) -> f32

Trait Implementations§

source§

impl<'a> Debug for Pointer<'a>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

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> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere 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 Twhere 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 Twhere 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 Twhere 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.