Struct wayland_server::protocol::wl_data_source::Implementation
[−]
[src]
pub struct Implementation<ID> { pub offer: fn(_: &mut EventLoopHandle, _: &mut ID, _: &Client, _: &WlDataSource, _: String), pub destroy: fn(_: &mut EventLoopHandle, _: &mut ID, _: &Client, _: &WlDataSource), pub set_actions: fn(_: &mut EventLoopHandle, _: &mut ID, _: &Client, _: &WlDataSource, _: u32), }
Fields
offer: fn(_: &mut EventLoopHandle, _: &mut ID, _: &Client, _: &WlDataSource, _: String)
add an offered mime type
This request adds a mime type to the set of mime types advertised to targets. Can be called several times to offer multiple types.
Arguments: event_queue_handle, interface_data, wl_data_source, mime_type
destroy: fn(_: &mut EventLoopHandle, _: &mut ID, _: &Client, _: &WlDataSource)
destroy the data source
Destroy the data source.
Arguments: event_queue_handle, interface_data, wl_data_source
This is a destructor, you cannot send events to this object once this method is called.
set_actions: fn(_: &mut EventLoopHandle, _: &mut ID, _: &Client, _: &WlDataSource, _: u32)
set the available drag-and-drop actions
Sets the actions that the source side client supports for this operation. This request may trigger wl_data_source.action and wl_data_offer.action events if the compositor needs to change the selected action.
The dnd_actions argument must contain only values expressed in the wl_data_device_manager.dnd_actions enum, otherwise it will result in a protocol error.
This request must be made once only, and can only be made on sources used in drag-and-drop, so it must be performed before wl_data_device.start_drag. Attempting to use the source other than for drag-and-drop will raise a protocol error.
Arguments: event_queue_handle, interface_data, wl_data_source, dnd_actions
This event only exists since version 3 of the interface
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