pub struct Touch {
pub x: f64,
pub y: f64,
pub identifier: i64,
pub delta_x: f64,
pub delta_y: f64,
}Expand description
Represents a single touch event.
Fields§
§x: f64The window-space x-coordinate of this touch point.
Use NodeContext::local_point to convert it into coordinates relative to a handler’s node.
y: f64The window-space y-coordinate of this touch point.
Use NodeContext::local_point to convert it into coordinates relative to a handler’s node.
identifier: i64Stable identifier for this touch across a touch sequence.
delta_x: f64Horizontal delta since the previous touch update.
delta_y: f64Vertical delta since the previous touch update.
Trait Implementations§
Source§impl From<&TouchMessage> for Touch
impl From<&TouchMessage> for Touch
Source§fn from(value: &TouchMessage) -> Touch
fn from(value: &TouchMessage) -> Touch
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for Touch
impl RefUnwindSafe for Touch
impl Send for Touch
impl Sync for Touch
impl Unpin for Touch
impl UnsafeUnpin for Touch
impl UnwindSafe for Touch
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<T, U> RoundInto<U> for Twhere
U: RoundFrom<T>,
impl<T, U> RoundInto<U> for Twhere
U: RoundFrom<T>,
Source§fn round_into(self) -> U
fn round_into(self) -> U
Performs the conversion.