touches field of an Event or TouchEvent.
org.eclipse.swt.events.TouchEvent , Sample code and further information
| Modifier and Type | Field and Description |
|---|---|
| public long | id
The unique identity of the touch. |
| public boolean | primary
A flag indicating that the touch is the first touch from a previous state of no touch points. |
| public TouchSource | source
The object representing the input source that generated the touch. |
| public int | state
The state of this touch at the time it was generated. |
| public int | x
The x location of the touch in TouchSource coordinates. |
| public int | y
The y location of the touch in TouchSource coordinates. |
| Access | Constructor and Description |
|---|---|
| pack-priv | Touch(long
Identity of the touch identity, TouchSource Object representing the device that generated the touch source, int One of the state constants representing the state of this touch state, boolean Whether or not the touch is the primary touch primary, int X location of the touch in screen coordinates x, int Y location of the touch in screen coordinates y)Constructs a new touch state from the given inputs. |
| Modifier and Type | Method and Description |
|---|---|
| public String | Returns: a string representation of the eventOverrides java. |
| id | back to summary |
|---|---|
| public long id The unique identity of the touch. Use this value to track changes to a touch during the touch's life. Two touches may have the same identity even if they come from different sources. | |
| primary | back to summary |
|---|---|
| public boolean primary A flag indicating that the touch is the first touch from a previous state of no touch points. Once designated as such, the touch remains the primary touch until all fingers are removed from the device. | |
| source | back to summary |
|---|---|
| public TouchSource source The object representing the input source that generated the touch. | |
| state | back to summary |
|---|---|
| public int state The state of this touch at the time it was generated. If this field is 0
then the finger is still touching the device but has not moved
since the last | |
| x | back to summary |
|---|---|
| public int x The x location of the touch in TouchSource coordinates. | |
| y | back to summary |
|---|---|
| public int y The y location of the touch in TouchSource coordinates. | |
| Touch | back to summary |
|---|---|
| pack-priv Touch(long identity, TouchSource source, int state, boolean primary, int x, int y) Constructs a new touch state from the given inputs.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Returns a string containing a concise, human-readable description of the receiver. | |