[][src]Trait stdweb::web::event::ITouchEvent

pub trait ITouchEvent: IUiEvent {
    fn alt_key(&self) -> bool { ... }
fn ctrl_key(&self) -> bool { ... }
fn meta_key(&self) -> bool { ... }
fn shift_key(&self) -> bool { ... }
fn touches(&self) -> Vec<Touch> { ... }
fn target_touches(&self) -> Vec<Touch> { ... }
fn changed_touches(&self) -> Vec<Touch> { ... } }

The ITouchEvent interface represents events that occur due to the user interacting with a touch device (such as a phone).

(JavaScript docs)

Provided methods

fn alt_key(&self) -> bool

Returns whether the Alt key was down when this event was fired.

(JavaScript docs)

fn ctrl_key(&self) -> bool

Indicates whether the Ctrl key was down when this event fired.

(JavaScript docs)

fn meta_key(&self) -> bool

Indicates whether the Meta key was down when this event fired.

(JavaScript docs)

fn shift_key(&self) -> bool

Indicates whether the Shift key was down when this event was fired.

(JavaScript docs)

fn touches(&self) -> Vec<Touch>

A list of Touches for every point of contact currently touching the surface.

(JavaScript docs)

fn target_touches(&self) -> Vec<Touch>

A list of Touches for every point of contact that is touching the surface and started on the element that is the target of the current event.

(JavaScript docs)

fn changed_touches(&self) -> Vec<Touch>

A list of Touches, one for each touch touch point that just became active with the current event.

(JavaScript docs)

Loading content...

Implementors

impl ITouchEvent for TouchCancel[src]

impl ITouchEvent for TouchEnd[src]

impl ITouchEvent for TouchEnter[src]

impl ITouchEvent for TouchEvent[src]

impl ITouchEvent for TouchLeave[src]

impl ITouchEvent for TouchMove[src]

impl ITouchEvent for TouchStart[src]

Loading content...