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§
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