pub struct TouchSample {
pub x: f32,
pub y: f32,
pub time_ms: Option<i64>,
}Expand description
One sample of a finger, or the mouse: where it was, in logical pixels, and the platform’s time of the sample in milliseconds, where the platform gives one.
Fields§
§x: f32Horizontal position, growing to the right.
y: f32Vertical position, growing downward.
time_ms: Option<i64>The platform’s time of the sample, in milliseconds.
Implementations§
Trait Implementations§
Source§impl Clone for TouchSample
impl Clone for TouchSample
impl Copy for TouchSample
Source§impl Debug for TouchSample
impl Debug for TouchSample
Source§impl PartialEq for TouchSample
impl PartialEq for TouchSample
impl StructuralPartialEq for TouchSample
Auto Trait Implementations§
impl Forget for TouchSample
impl Freeze for TouchSample
impl Move for TouchSample
impl RefUnwindSafe for TouchSample
impl Send for TouchSample
impl Sync for TouchSample
impl Unpin for TouchSample
impl UnsafeUnpin for TouchSample
impl UnwindSafe for TouchSample
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