Struct conrod::input::touch::Touch [−][src]
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]
impl Touch
pub fn relative_to(&self, xy: Point) -> Self
[src]
pub fn relative_to(&self, xy: Point) -> Self
Returns a copy of the Touch
relative to the given xy
.
Trait Implementations
impl From<Touch> for Input
[src]
impl From<Touch> for Input
impl From<Touch> for Widget
[src]
impl From<Touch> for Widget
impl Copy for Touch
[src]
impl Copy for Touch
impl Clone for Touch
[src]
impl Clone for Touch
fn clone(&self) -> Touch
[src]
fn clone(&self) -> Touch
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl Debug for Touch
[src]
impl Debug for Touch
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl PartialEq for Touch
[src]
impl PartialEq for Touch