public final class Touch
extends java.lang.Object
touches
field of an Event or TouchEvent.TouchEvent
,
Sample code and further informationModifier and Type | Field and Description |
---|---|
long |
id
The unique identity of the touch.
|
boolean |
primary
A flag indicating that the touch is the first touch from a previous
state of no touch points.
|
TouchSource |
source
The object representing the input source that generated the touch.
|
int |
state
The state of this touch at the time it was generated.
|
int |
x
The X location of the touch in TouchSource coordinates
|
int |
y
The Y location of the touch in TouchSource coordinates
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
toString()
Returns a string containing a concise, human-readable
description of the receiver.
|
public long id
public TouchSource source
public int state
TouchEvent
was generated.SWT.TOUCHSTATE_DOWN
,
SWT.TOUCHSTATE_MOVE
,
SWT.TOUCHSTATE_UP
public boolean primary
public int x
public int y
Copyright (c) EclipseSource and others 2002, 2020.
All rights reserved. This program and the accompanying materials
are made available under the terms of the
Eclipse Public License v1.0