SDL
2.0
|
The wl_data_device_manager is a singleton global object that provides access to inter-client data transfer mechanisms such as copy-and-paste and drag-and-drop. These mechanisms are tied to a wl_seat and this interface lets a client get a wl_data_device corresponding to a wl_seat. More...
Macros | |
#define | WL_DATA_DEVICE_MANAGER_CREATE_DATA_SOURCE_SINCE_VERSION 1 |
#define | WL_DATA_DEVICE_MANAGER_GET_DATA_DEVICE_SINCE_VERSION 1 |
Functions | |
static void | wl_data_device_manager_set_user_data (struct wl_data_device_manager *wl_data_device_manager, void *user_data) |
static void * | wl_data_device_manager_get_user_data (struct wl_data_device_manager *wl_data_device_manager) |
static void | wl_data_device_manager_destroy (struct wl_data_device_manager *wl_data_device_manager) |
static struct wl_data_source * | wl_data_device_manager_create_data_source (struct wl_data_device_manager *wl_data_device_manager) |
static struct wl_data_device * | wl_data_device_manager_get_data_device (struct wl_data_device_manager *wl_data_device_manager, struct wl_seat *seat) |
The wl_data_device_manager is a singleton global object that provides access to inter-client data transfer mechanisms such as copy-and-paste and drag-and-drop. These mechanisms are tied to a wl_seat and this interface lets a client get a wl_data_device corresponding to a wl_seat.
Depending on the version bound, the objects created from the bound wl_data_device_manager object will have different requirements for functioning properly. See wl_data_source.set_actions, wl_data_offer.accept and wl_data_offer.finish for details.
#define WL_DATA_DEVICE_MANAGER_CREATE_DATA_SOURCE_SINCE_VERSION 1 |
Definition at line 2642 of file wayland-client-protocol.h.
#define WL_DATA_DEVICE_MANAGER_GET_DATA_DEVICE_SINCE_VERSION 1 |
Definition at line 2646 of file wayland-client-protocol.h.
drag and drop actions
This is a bitmask of the available/preferred actions in a drag-and-drop operation.
In the compositor, the selected action is a result of matching the actions offered by the source and destination sides. "action" events with a "none" action will be sent to both source and destination if there is no match. All further checks will effectively happen on (source actions ∩ destination actions).
In addition, compositors may also pick different actions in reaction to key modifiers being pressed. One common design that is used in major toolkits (and the behavior recommended for compositors) is:
Behavior beyond that is considered implementation-dependent. Compositors may for example bind other modifiers (like Alt/Meta) or drags initiated with other buttons than BTN_LEFT to specific actions (e.g. "ask").
Definition at line 2614 of file wayland-client-protocol.h.
|
inlinestatic |
Create a new data source.
Definition at line 2680 of file wayland-client-protocol.h.
References NULL, WL_DATA_DEVICE_MANAGER_CREATE_DATA_SOURCE, and wl_data_source_interface.
|
inlinestatic |
Definition at line 2669 of file wayland-client-protocol.h.
|
inlinestatic |
Create a new data device for a given seat.
Definition at line 2696 of file wayland-client-protocol.h.
References NULL, wl_data_device_interface, and WL_DATA_DEVICE_MANAGER_GET_DATA_DEVICE.
|
inlinestatic |
Definition at line 2656 of file wayland-client-protocol.h.
|
inlinestatic |
Definition at line 2649 of file wayland-client-protocol.h.