pub struct Touch {
pub phase: Phase,
pub id: Id,
pub xy: Point,
}Expand description
Represents a touch interaction.
Each time a user touches the surface with a new finger, a new series of Touch events
Start, each with a unique identifier.
For every Id there should be at least 2 events with Start and End (or Cancelled)
Phases.
A Start input received with the same Id as a previously received End does not
indicate that the same finger was used. Ids are only used to distinguish between
overlapping touch interactions.
Fields§
§phase: PhaseThe stage of the touch interaction.
id: IdA unique identifier associated with the source of the touch interaction.
xy: PointThe location of the touch on the surface/screen. See Input docs for information on
the co-ordinate system.
Implementations§
Trait Implementations§
impl Copy for Touch
impl StructuralPartialEq for Touch
Auto Trait Implementations§
impl Freeze for Touch
impl RefUnwindSafe for Touch
impl Send for Touch
impl Sync for Touch
impl Unpin 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