Trait wayland_client::protocol::wl_touch::Handler
[−]
[src]
pub trait Handler { fn down(&mut self,
evqh: &mut EventQueueHandle,
proxy: &WlTouch,
serial: u32,
time: u32,
surface: &WlSurface,
id: i32,
x: f64,
y: f64) { ... } fn up(&mut self,
evqh: &mut EventQueueHandle,
proxy: &WlTouch,
serial: u32,
time: u32,
id: i32) { ... } fn motion(&mut self,
evqh: &mut EventQueueHandle,
proxy: &WlTouch,
time: u32,
id: i32,
x: f64,
y: f64) { ... } fn frame(&mut self, evqh: &mut EventQueueHandle, proxy: &WlTouch) { ... } fn cancel(&mut self, evqh: &mut EventQueueHandle, proxy: &WlTouch) { ... } }
Provided Methods
fn down(&mut self,
evqh: &mut EventQueueHandle,
proxy: &WlTouch,
serial: u32,
time: u32,
surface: &WlSurface,
id: i32,
x: f64,
y: f64)
evqh: &mut EventQueueHandle,
proxy: &WlTouch,
serial: u32,
time: u32,
surface: &WlSurface,
id: i32,
x: f64,
y: f64)
touch down event and beginning of a touch sequence
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.
fn up(&mut self,
evqh: &mut EventQueueHandle,
proxy: &WlTouch,
serial: u32,
time: u32,
id: i32)
evqh: &mut EventQueueHandle,
proxy: &WlTouch,
serial: u32,
time: u32,
id: i32)
end of a touch event sequence
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.
fn motion(&mut self,
evqh: &mut EventQueueHandle,
proxy: &WlTouch,
time: u32,
id: i32,
x: f64,
y: f64)
evqh: &mut EventQueueHandle,
proxy: &WlTouch,
time: u32,
id: i32,
x: f64,
y: f64)
update of touch point coordinates
A touch point has changed coordinates.
fn frame(&mut self, evqh: &mut EventQueueHandle, proxy: &WlTouch)
end of touch frame event
Indicates the end of a contact point list.
fn cancel(&mut self, evqh: &mut EventQueueHandle, proxy: &WlTouch)
touch session cancelled
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.