Package org.freedesktop.wayland.client
Class WlDataDeviceManagerProxy
java.lang.Object
org.freedesktop.wayland.client.Proxy<WlDataDeviceManagerEvents>
org.freedesktop.wayland.client.WlDataDeviceManagerProxy
- All Implemented Interfaces:
WaylandObject
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 -
Constructor Summary
ConstructorsConstructorDescriptionWlDataDeviceManagerProxy
(MemorySegment pointer) WlDataDeviceManagerProxy
(MemorySegment pointer, WlDataDeviceManagerEvents implementation, int version) -
Method Summary
Modifier and TypeMethodDescriptioncreateDataSource
(WlDataSourceEvents implementation) create a new data sourcegetDataDevice
(WlDataDeviceEvents implementation, WlSeatProxy seat) create a new data deviceMethods inherited from class org.freedesktop.wayland.client.Proxy
destroy, equals, getId, getImplementation, getPointer, getVersion, hashCode, marshal, marshal, marshalConstructor, setQueue
-
Field Details
-
INTERFACE_NAME
- See Also:
-
-
Constructor Details
-
WlDataDeviceManagerProxy
public WlDataDeviceManagerProxy(MemorySegment pointer, WlDataDeviceManagerEvents implementation, int version) -
WlDataDeviceManagerProxy
-
-
Method Details
-
createDataSource
create a new data sourceCreate a new data source.
- Parameters:
implementation
- A protocol event listener for the newly created proxy.
-
getDataDevice
public WlDataDeviceProxy getDataDevice(WlDataDeviceEvents implementation, @Nonnull WlSeatProxy seat) create a new data deviceCreate a new data device for a given seat.
- Parameters:
implementation
- A protocol event listener for the newly created proxy.seat
- seat associated with the data device
-