public class WlDataDeviceManagerProxy extends Proxy<WlDataDeviceManagerEvents>
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.
| Modifier and Type | Field and Description |
|---|---|
static String |
INTERFACE_NAME |
| Constructor and Description |
|---|
WlDataDeviceManagerProxy(long pointer) |
WlDataDeviceManagerProxy(long pointer,
WlDataDeviceManagerEvents implementation,
int version) |
| Modifier and Type | Method and Description |
|---|---|
WlDataSourceProxy |
createDataSource(WlDataSourceEvents implementation)
create a new data source
|
WlDataDeviceProxy |
getDataDevice(WlDataDeviceEvents implementation,
WlSeatProxy seat)
create a new data device
|
destroy, equals, getId, getImplementation, getPointer, getVersion, hashCode, marshal, marshal, marshalConstructor, setQueuepublic static final String INTERFACE_NAME
public WlDataDeviceManagerProxy(long pointer,
WlDataDeviceManagerEvents implementation,
int version)
public WlDataDeviceManagerProxy(long pointer)
public WlDataSourceProxy createDataSource(WlDataSourceEvents implementation)
Create a new data source.
implementation - A protocol event listener for the newly created proxy.public WlDataDeviceProxy getDataDevice(WlDataDeviceEvents implementation, @Nonnull WlSeatProxy seat)
Create a new data device for a given seat.
implementation - A protocol event listener for the newly created proxy.seat - seat associated with the data deviceCopyright © 2016. All rights reserved.