Enum wayland_client::wayland::seat::WlPointerEvent
[−]
[src]
pub enum WlPointerEvent { Enter(u32, ProxyId, f64, f64), Leave(u32, ProxyId), Motion(u32, f64, f64), Button(u32, u32, u32, WlPointerButtonState), Axis(u32, WlPointerAxis, f64), }
Variants
Enter(u32, ProxyId, f64, f64)
enter event
Notification that this seat's pointer is focused on a certain surface.
When an 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.
Values: serial, surface, surface_x, surface_y,
Leave(u32, ProxyId)
leave event
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.
Values: serial, surface,
Motion(u32, f64, f64)
pointer motion event
Notification of pointer location change. The arguments surface_x and surface_y are the location relative to the focused surface.
Values: time, surface_x, surface_y,
Button(u32, u32, u32, WlPointerButtonState)
pointer button event
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.
Values: serial, time, button, state,
Axis(u32, WlPointerAxis, f64)
axis event
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, clients can transform its view relative to the scroll distance.
Values: time, axis, value,