Package org.freedesktop.wayland.server
Interface WlDataDeviceManagerRequestsV2
- All Superinterfaces:
WlDataDeviceManagerRequests
- All Known Subinterfaces:
WlDataDeviceManagerRequestsV3
data transfer interface
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.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoid
createDataSource
(WlDataDeviceManagerResource requester, int id) create a new data sourcevoid
getDataDevice
(WlDataDeviceManagerResource requester, int id, WlSeatResource seat) create a new data device
-
Field Details
-
VERSION
static final int VERSION- See Also:
-
-
Method Details
-
createDataSource
create a new data sourceCreate a new data source.
- Specified by:
createDataSource
in interfaceWlDataDeviceManagerRequests
- Parameters:
requester
- The protocol object that made the request.id
- data source to create
-
getDataDevice
create a new data deviceCreate a new data device for a given seat.
- Specified by:
getDataDevice
in interfaceWlDataDeviceManagerRequests
- Parameters:
requester
- The protocol object that made the request.id
- data device to createseat
- seat associated with the data device
-