pub struct HistoricalMotionEvent<'a> { /* private fields */ }Expand description
Represents a view into a past moment of a motion event
Implementations§
Source§impl<'a> HistoricalMotionEvent<'a>
impl<'a> HistoricalMotionEvent<'a>
Sourcepub fn history_index(&self) -> usize
pub fn history_index(&self) -> usize
Returns the “history index” associated with this historical event. Older events have smaller indices.
Sourcepub fn event_time(&self) -> i64
pub fn event_time(&self) -> i64
Returns the time of the historical event, in the java.lang.System.nanoTime() time base
See the NDK docs
Sourcepub fn pointers(&self) -> HistoricalPointersIter<'a> ⓘ
pub fn pointers(&self) -> HistoricalPointersIter<'a> ⓘ
An iterator over the pointers of this historical motion event
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for HistoricalMotionEvent<'a>
impl<'a> RefUnwindSafe for HistoricalMotionEvent<'a>
impl<'a> !Send for HistoricalMotionEvent<'a>
impl<'a> !Sync for HistoricalMotionEvent<'a>
impl<'a> Unpin for HistoricalMotionEvent<'a>
impl<'a> UnwindSafe for HistoricalMotionEvent<'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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more