public interface WlPointerEventsV3 extends WlPointerEventsV2
The wl_pointer interface represents one or more input devices, such as mice, which control the pointer location and pointer_focus of a seat.
The wl_pointer interface generates motion, enter and leave events for the surfaces that the pointer is located over, and button and axis events for button presses, button releases and scrolling.
| Modifier and Type | Field and Description |
|---|---|
static int |
VERSION |
| Modifier and Type | Method and Description |
|---|---|
void |
axis(WlPointerProxy emitter,
int time,
int axis,
org.freedesktop.wayland.util.Fixed value)
axis event
|
void |
button(WlPointerProxy emitter,
int serial,
int time,
int button,
int state)
pointer button event
|
void |
enter(WlPointerProxy emitter,
int serial,
WlSurfaceProxy surface,
org.freedesktop.wayland.util.Fixed surfaceX,
org.freedesktop.wayland.util.Fixed surfaceY)
enter event
|
void |
leave(WlPointerProxy emitter,
int serial,
WlSurfaceProxy surface)
leave event
|
void |
motion(WlPointerProxy emitter,
int time,
org.freedesktop.wayland.util.Fixed surfaceX,
org.freedesktop.wayland.util.Fixed surfaceY)
pointer motion event
|
static final int VERSION
void enter(WlPointerProxy emitter, int serial, @Nonnull WlSurfaceProxy surface, @Nonnull org.freedesktop.wayland.util.Fixed surfaceX, @Nonnull org.freedesktop.wayland.util.Fixed surfaceY)
Notification that this seat's pointer is focused on a certain surface.
When a seat's focus enters a surface, the pointer image is undefined and a client should respond to this event by setting an appropriate pointer image with the set_cursor request.
enter in interface WlPointerEventsenter in interface WlPointerEventsV2emitter - The protocol object that emitted the event.serial - serial number of the enter eventsurface - surface entered by the pointersurfaceX - surface-local x coordinatesurfaceY - surface-local y coordinatevoid leave(WlPointerProxy emitter, int serial, @Nonnull WlSurfaceProxy surface)
Notification that this seat's pointer is no longer focused on a certain surface.
The leave notification is sent before the enter notification for the new focus.
leave in interface WlPointerEventsleave in interface WlPointerEventsV2emitter - The protocol object that emitted the event.serial - serial number of the leave eventsurface - surface left by the pointervoid motion(WlPointerProxy emitter, int time, @Nonnull org.freedesktop.wayland.util.Fixed surfaceX, @Nonnull org.freedesktop.wayland.util.Fixed surfaceY)
Notification of pointer location change. The arguments surface_x and surface_y are the location relative to the focused surface.
motion in interface WlPointerEventsmotion in interface WlPointerEventsV2emitter - The protocol object that emitted the event.time - timestamp with millisecond granularitysurfaceX - surface-local x coordinatesurfaceY - surface-local y coordinatevoid button(WlPointerProxy emitter, int serial, int time, int button, int state)
Mouse button click and release notifications.
The location of the click is given by the last motion or enter event. The time argument is a timestamp with millisecond granularity, with an undefined base.
button in interface WlPointerEventsbutton in interface WlPointerEventsV2emitter - The protocol object that emitted the event.serial - serial number of the button eventtime - timestamp with millisecond granularitybutton - button that produced the eventstate - physical state of the buttonvoid axis(WlPointerProxy emitter, int time, int axis, @Nonnull org.freedesktop.wayland.util.Fixed value)
Scroll and other axis notifications.
For scroll events (vertical and horizontal scroll axes), the value parameter is the length of a vector along the specified axis in a coordinate space identical to those of motion events, representing a relative movement along the specified axis.
For devices that support movements non-parallel to axes multiple axis events will be emitted.
When applicable, for example for touch pads, the server can choose to emit scroll events where the motion vector is equivalent to a motion event vector.
When applicable, a client can transform its content relative to the scroll distance.
axis in interface WlPointerEventsaxis in interface WlPointerEventsV2emitter - The protocol object that emitted the event.time - timestamp with millisecond granularityaxis - axis typevalue - length of vector in surface-local coordinate spaceCopyright © 2016. All rights reserved.