Package org.eclipse.swt.events
Class TouchEvent
java.lang.Object
SWTEventObject
org.eclipse.swt.events.TypedEvent
org.eclipse.swt.events.TouchEvent
Instances of this class are sent in response to
 a touch-based input source being touched.
- Since:
- 1.4
- See Also:
- 
Field SummaryFieldsModifier and TypeFieldDescriptionintThe state of the keyboard modifier keys and mouse masks at the time the event was generated.Touch[]The set of touches representing the state of all contacts with touch input device at the time the event was generated.intThe widget-relative x coordinate of the pointer at the time the touch occurred.intThe widget-relative y coordinate of the pointer at the time the touch occurred.Fields inherited from class org.eclipse.swt.events.TypedEventdata, display, time, widget
- 
Constructor SummaryConstructorsConstructorDescriptionTouchEvent(Event e) Constructs a new instance of this class based on the information in the given untyped event.
- 
Method Summary
- 
Field Details- 
touchesThe set of touches representing the state of all contacts with touch input device at the time the event was generated.- See Also:
 
- 
stateMaskpublic int stateMaskThe state of the keyboard modifier keys and mouse masks at the time the event was generated.- See Also:
 
- 
xpublic int xThe widget-relative x coordinate of the pointer at the time the touch occurred.
- 
ypublic int yThe widget-relative y coordinate of the pointer at the time the touch occurred.
 
- 
- 
Constructor Details- 
TouchEventConstructs a new instance of this class based on the information in the given untyped event.- Parameters:
- e- the untyped event containing the information
 
 
- 
- 
Method Details- 
toStringReturns a string containing a concise, human-readable description of the receiver.- Overrides:
- toStringin class- TypedEvent
- Returns:
- a string representation of the event
 
 
-