Struct ndk::event::HistoricalMotionEvent
source · [−]pub struct HistoricalMotionEvent<'a> { /* private fields */ }
Expand description
Represents a view into a past moment of a motion event
Implementations
sourceimpl<'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>ⓘNotable traits for HistoricalPointersIter<'a>impl<'a> Iterator for HistoricalPointersIter<'a> type Item = HistoricalPointer<'a>;
pub fn pointers(&self) -> HistoricalPointersIter<'a>ⓘNotable traits for HistoricalPointersIter<'a>impl<'a> Iterator for HistoricalPointersIter<'a> type Item = HistoricalPointer<'a>;
An iterator over the pointers of this historical motion event
Trait Implementations
Auto Trait Implementations
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more