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]

[src]

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

Trait Implementations

impl From<Touch> for Input
[src]

[src]

Performs the conversion.

impl From<Touch> for Widget
[src]

[src]

Performs the conversion.

impl Copy for Touch
[src]

impl Clone for Touch
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for Touch
[src]

[src]

Formats the value using the given formatter. Read more

impl PartialEq for Touch
[src]

[src]

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

[src]

This method tests for !=.

Auto Trait Implementations

impl Send for Touch

impl Sync for Touch