Package org.eclipse.swt.events
Interface TouchListener
-
- All Superinterfaces:
EventListener
,SWTEventListener
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface TouchListener extends SWTEventListener
Classes which implement this interface provide methods that deal with the events that are generated as touches occur on a touch-aware input surface.After creating an instance of a class that implements this interface it can be added to a control using the
addTouchListener
method and removed using theremoveTouchListener
method. When a touch occurs or changes state, thetouch
method will be invoked.Warning: This API is currently only implemented on Windows and Cocoa. SWT doesn't send Gesture or Touch events on GTK.
- Since:
- 3.7
- See Also:
TouchEvent
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
touch(TouchEvent e)
Sent when a touch sequence begins, changes state, or ends.
-
-
-
Method Detail
-
touch
void touch(TouchEvent e)
Sent when a touch sequence begins, changes state, or ends.- Parameters:
e
- an event containing information about the touch
-
-