Struct wayland_client::protocol::wl_data_source::WlDataSource [] [src]

pub struct WlDataSource { /* fields omitted */ }

Methods

impl WlDataSource
[src]

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.

destroy the data source

Destroy the data source.

This is a destructor, you cannot send requests to this object once this method is called.

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.

Trait Implementations

impl Send for WlDataSource
[src]

impl Sync for WlDataSource
[src]

impl Proxy for WlDataSource
[src]

Pointer to the underlying wayland proxy object

Create an instance from a wayland pointer Read more

Create an instance from a wayland pointer Read more

Pointer to the interface representation

Internal wayland name of this interface

Max version of this interface supported

Current version of the interface this proxy is instanciated with

Check if the proxt behind this handle is actually still alive

Check of two handles are actually the same wayland object Read more

Set a pointer associated as user data on this proxy Read more

Get the pointer associated as user data on this proxy Read more