Package org.gnome.gdk

Class Clipboard

java.lang.Object
All Implemented Interfaces:
Proxy

@Generated("io.github.jwharm.JavaGI") public class Clipboard extends GObject
The GdkClipboard object represents data shared between applications or inside an application.

To get a GdkClipboard object, use Display.getClipboard() or Display.getPrimaryClipboard(). You can find out about the data that is currently available in a clipboard using getFormats().

To make text or image data available in a clipboard, use setText(java.lang.String) or setTexture(org.gnome.gdk.Texture). For other data, you can use setContent(org.gnome.gdk.ContentProvider), which takes a ContentProvider object.

To read textual or image data from a clipboard, use readTextAsync(org.gnome.gio.Cancellable, org.gnome.gio.AsyncReadyCallback) or readTextureAsync(org.gnome.gio.Cancellable, org.gnome.gio.AsyncReadyCallback). For other data, use readAsync(java.lang.String[], int, org.gnome.gio.Cancellable, org.gnome.gio.AsyncReadyCallback), which provides a GInputStream object.