public interface WlTouchEventsV5 extends WlTouchEventsV4
The wl_touch interface represents a touchscreen associated with a seat.
Touch interactions can consist of one or more contacts. For each contact, a series of events is generated, starting with a down event, followed by zero or more motion events, and ending with an up event. Events relating to the same contact point can be identified by the ID of the sequence.
| Modifier and Type | Field and Description |
|---|---|
static int |
VERSION |
| Modifier and Type | Method and Description |
|---|---|
void |
cancel(WlTouchProxy emitter)
touch session cancelled
|
void |
down(WlTouchProxy emitter,
int serial,
int time,
WlSurfaceProxy surface,
int id,
org.freedesktop.wayland.util.Fixed x,
org.freedesktop.wayland.util.Fixed y)
touch down event and beginning of a touch sequence
|
void |
frame(WlTouchProxy emitter)
end of touch frame event
|
void |
motion(WlTouchProxy emitter,
int time,
int id,
org.freedesktop.wayland.util.Fixed x,
org.freedesktop.wayland.util.Fixed y)
update of touch point coordinates
|
void |
up(WlTouchProxy emitter,
int serial,
int time,
int id)
end of a touch event sequence
|
static final int VERSION
void down(WlTouchProxy emitter, int serial, int time, @Nonnull WlSurfaceProxy surface, int id, @Nonnull org.freedesktop.wayland.util.Fixed x, @Nonnull org.freedesktop.wayland.util.Fixed y)
A new touch point has appeared on the surface. This touch point is assigned a unique ID. Future events from this touch point reference this ID. The ID ceases to be valid after a touch up event and may be reused in the future.
down in interface WlTouchEventsdown in interface WlTouchEventsV2down in interface WlTouchEventsV3down in interface WlTouchEventsV4emitter - The protocol object that emitted the event.serial - serial number of the touch down eventtime - timestamp with millisecond granularitysurface - surface touchedid - the unique ID of this touch pointx - surface-local x coordinatey - surface-local y coordinatevoid up(WlTouchProxy emitter, int serial, int time, int id)
The touch point has disappeared. No further events will be sent for this touch point and the touch point's ID is released and may be reused in a future touch down event.
up in interface WlTouchEventsup in interface WlTouchEventsV2up in interface WlTouchEventsV3up in interface WlTouchEventsV4emitter - The protocol object that emitted the event.serial - serial number of the touch up eventtime - timestamp with millisecond granularityid - the unique ID of this touch pointvoid motion(WlTouchProxy emitter, int time, int id, @Nonnull org.freedesktop.wayland.util.Fixed x, @Nonnull org.freedesktop.wayland.util.Fixed y)
A touch point has changed coordinates.
motion in interface WlTouchEventsmotion in interface WlTouchEventsV2motion in interface WlTouchEventsV3motion in interface WlTouchEventsV4emitter - The protocol object that emitted the event.time - timestamp with millisecond granularityid - the unique ID of this touch pointx - surface-local x coordinatey - surface-local y coordinatevoid frame(WlTouchProxy emitter)
Indicates the end of a contact point list.
frame in interface WlTouchEventsframe in interface WlTouchEventsV2frame in interface WlTouchEventsV3frame in interface WlTouchEventsV4emitter - The protocol object that emitted the event.void cancel(WlTouchProxy emitter)
Sent if the compositor decides the touch stream is a global gesture. No further events are sent to the clients from that particular gesture. Touch cancellation applies to all touch points currently active on this client's surface. The client is responsible for finalizing the touch points, future touch points on this surface may reuse the touch point ID.
cancel in interface WlTouchEventscancel in interface WlTouchEventsV2cancel in interface WlTouchEventsV3cancel in interface WlTouchEventsV4emitter - The protocol object that emitted the event.Copyright © 2016. All rights reserved.