[−][src]Trait wayland_protocols::unstable::pointer_gestures::v1::client::zwp_pointer_gesture_swipe_v1::EventHandler
An interface for handling events.
Provided methods
fn begin(
&mut self,
object: ZwpPointerGestureSwipeV1,
serial: u32,
time: u32,
surface: WlSurface,
fingers: u32
)
&mut self,
object: ZwpPointerGestureSwipeV1,
serial: u32,
time: u32,
surface: WlSurface,
fingers: u32
)
multi-finger swipe begin
This event is sent when a multi-finger swipe gesture is detected on the device.
fn update(
&mut self,
object: ZwpPointerGestureSwipeV1,
time: u32,
dx: f64,
dy: f64
)
&mut self,
object: ZwpPointerGestureSwipeV1,
time: u32,
dx: f64,
dy: f64
)
multi-finger swipe motion
This event is sent when a multi-finger swipe gesture changes the position of the logical center.
The dx and dy coordinates are relative coordinates of the logical center of the gesture compared to the previous event.
fn end(
&mut self,
object: ZwpPointerGestureSwipeV1,
serial: u32,
time: u32,
cancelled: i32
)
&mut self,
object: ZwpPointerGestureSwipeV1,
serial: u32,
time: u32,
cancelled: i32
)
multi-finger swipe end
This event is sent when a multi-finger swipe gesture ceases to be valid. This may happen when one or more fingers are lifted or the gesture is cancelled.
When a gesture is cancelled, the client should undo state changes caused by this gesture. What causes a gesture to be cancelled is implementation-dependent.