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

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

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

update of touch point coordinates

A touch point has changed coordinates.

Arguments: event_queue_handle, interface_data, wl_touch, time, id, x, y

end of touch frame event

Indicates the end of a contact point list.

Arguments: event_queue_handle, interface_data, wl_touch

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]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl<ID> PartialEq for Implementation<ID>
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

1.0.0
[src]

This method tests for !=.