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 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

The stage of the touch interaction.

A unique identifier associated with the source of the touch interaction.

The location of the touch on the surface/screen. See Input docs for information on the co-ordinate system.

Methods

impl Touch
[src]

Returns a copy of the Touch relative to the given xy.

Trait Implementations

impl Copy for Touch
[src]

impl Clone for Touch
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Touch
[src]

Formats the value using the given formatter.

impl PartialEq for Touch
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.