Enum wayland_client::wayland::data_device::WlDataDeviceEvent
[−]
[src]
pub enum WlDataDeviceEvent { DataOffer(WlDataOffer), Enter(u32, ProxyId, f64, f64, ProxyId), Leave, Motion(u32, f64, f64), Drop, Selection(ProxyId), }
Variants
DataOffer(WlDataOffer)
introduce a new wl_data_offer
The data_offer event introduces a new wl_data_offer object, which will subsequently be used in either the data_device.enter event (for drag-and-drop) or the data_device.selection event (for selections). Immediately following the data_device_data_offer event, the new data_offer object will send out data_offer.offer events to describe the mime types it offers.
Values: id,
Enter(u32, ProxyId, f64, f64, ProxyId)
initiate drag-and-drop session
This event is sent when an active drag-and-drop pointer enters a surface owned by the client. The position of the pointer at enter time is provided by the x and y arguments, in surface local coordinates.
Values: serial, surface, x, y, id,
Leave
end drag-and-drop session
This event is sent when the drag-and-drop pointer leaves the surface and the session ends. The client must destroy the wl_data_offer introduced at enter time at this point.
Motion(u32, f64, f64)
drag-and-drop session motion
This event is sent when the drag-and-drop pointer moves within the currently focused surface. The new position of the pointer is provided by the x and y arguments, in surface local coordinates.
Values: time, x, y,
Drop
end drag-and-drag session successfully
The event is sent when a drag-and-drop operation is ended because the implicit grab is removed.
Selection(ProxyId)
advertise new selection
The selection event is sent out to notify the client of a new wl_data_offer for the selection for this device. The data_device.data_offer and the data_offer.offer events are sent out immediately before this event to introduce the data offer object. The selection event is sent to a client immediately before receiving keyboard focus and when a new selection is set while the client has keyboard focus. The data_offer is valid until a new data_offer or NULL is received or until the client loses keyboard focus. The client must destroy the previous selection data_offer, if any, upon receiving this event.
Values: id,