Struct conrod::input::touch::Touch
[−]
[src]
pub struct Touch { pub phase: Phase, pub id: Id, pub xy: Point, }
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 Cancel
led)
Phase
s.
A Start
input received with the same Id
as a previously received End
does not
indicate that the same finger was used. Id
s are only used to distinguish between
overlapping touch interactions.
Fields
phase: Phase
The stage of the touch interaction.
id: Id
A unique identifier associated with the source of the touch interaction.
xy: Point
The location of the touch on the surface/screen. See Input
docs for information on
the co-ordinate system.
Methods
impl Touch
[src]
fn relative_to(&self, xy: Point) -> Self
[src]
Returns a copy of the Touch
relative to the given xy
.
Trait Implementations
impl Copy for Touch
[src]
impl Clone for Touch
[src]
fn clone(&self) -> Touch
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more