Struct wayland_client::protocol::wl_touch::Implementation
[−]
[src]
pub struct Implementation<ID> { pub down: fn(_: &mut EventQueueHandle, _: &mut ID, _: &WlTouch, _: u32, _: u32, _: &WlSurface, _: i32, _: f64, _: f64), pub up: fn(_: &mut EventQueueHandle, _: &mut ID, _: &WlTouch, _: u32, _: u32, _: i32), pub motion: fn(_: &mut EventQueueHandle, _: &mut ID, _: &WlTouch, _: u32, _: i32, _: f64, _: f64), pub frame: fn(_: &mut EventQueueHandle, _: &mut ID, _: &WlTouch), pub cancel: fn(_: &mut EventQueueHandle, _: &mut ID, _: &WlTouch), }
Fields
down: fn(_: &mut EventQueueHandle, _: &mut ID, _: &WlTouch, _: u32, _: u32, _: &WlSurface, _: i32, _: f64, _: 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.
Arguments: event_queue_handle, interface_data, wl_touch, serial, time, surface, id, x, y
up: fn(_: &mut EventQueueHandle, _: &mut ID, _: &WlTouch, _: u32, _: u32, _: 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.
Arguments: event_queue_handle, interface_data, wl_touch, serial, time, id
motion: fn(_: &mut EventQueueHandle, _: &mut ID, _: &WlTouch, _: u32, _: i32, _: f64, _: f64)
update of touch point coordinates
A touch point has changed coordinates.
Arguments: event_queue_handle, interface_data, wl_touch, time, id, x, y
frame: fn(_: &mut EventQueueHandle, _: &mut ID, _: &WlTouch)
end of touch frame event
Indicates the end of a contact point list.
Arguments: event_queue_handle, interface_data, wl_touch
cancel: fn(_: &mut EventQueueHandle, _: &mut ID, _: &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.
Arguments: event_queue_handle, interface_data, wl_touch
Trait Implementations
impl<ID> Copy for Implementation<ID>
[src]
impl<ID> Clone for Implementation<ID>
[src]
fn clone(&self) -> Implementation<ID>
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more