Enum input::Touch [] [src]

pub enum Touch {
    Start,
    Move,
    End,
    Cancel,
}

Stores the touch state.

Variants

Start

The start of touch, for example a finger pressed down on a touch screen.

Move

The move of touch, for example a finger moving while touching a touch screen.

End

The end of touch, for example taking a finger away from a touch screen.

Cancel

The cancel of touch, for example the window loses focus.

Trait Implementations

impl Debug for Touch
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl PartialEq for Touch
[src]

fn eq(&self, __arg_0: &Touch) -> bool

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

fn ne(&self, other: &Rhs) -> bool
1.0.0

This method tests for !=.

impl Encodable for Touch
[src]

fn encode<__S: Encoder>(&self, __arg_0: &mut __S) -> Result<(), __S::Error>

impl Decodable for Touch
[src]

fn decode<__D: Decoder>(__arg_0: &mut __D) -> Result<Touch, __D::Error>

impl Clone for Touch
[src]

fn clone(&self) -> Touch

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)
1.0.0

Performs copy-assignment from source. Read more

impl Copy for Touch
[src]