Class
GdkClipboard
since: 4.0
Description [src]
final class Gdk.Clipboard : GObject.Object
{
/* No available fields */
}
The GdkClipboard object represents data shared between applications or
inside an application.
To get a GdkClipboard object, use gdk_display_get_clipboard() or
gdk_display_get_primary_clipboard(). You can find out about the data
that is currently available in a clipboard using
gdk_clipboard_get_formats().
To make text or image data available in a clipboard, use
gdk_clipboard_set_text() or gdk_clipboard_set_texture().
For other data, you can use gdk_clipboard_set_content(), which
takes a GdkContentProvider object.
To read textual or image data from a clipboard, use
gdk_clipboard_read_text_async() or
gdk_clipboard_read_texture_async(). For other data, use
gdk_clipboard_read_async(), which provides a GInputStream object.
Available since: 4.0
Instance methods
gdk_clipboard_get_formats
Gets the formats that the clipboard can provide its current contents in.
since: 4.0
gdk_clipboard_read_async
Asynchronously requests an input stream to read the clipboard‘s
contents from.
since: 4.0
gdk_clipboard_read_text_async
Asynchronously request the clipboard contents converted to a string.
since: 4.0
gdk_clipboard_read_texture_async
Asynchronously request the clipboard contents converted to a GdkPixbuf.
since: 4.0
gdk_clipboard_read_value_async
Asynchronously request the clipboard contents converted to the given
type.
since: 4.0
gdk_clipboard_set
Sets the clipboard to contain the value collected from the given varargs.
since: 4.0
gdk_clipboard_set_valist
Sets the clipboard to contain the value collected from the given args.
since: 4.0
gdk_clipboard_store_async
Asynchronously instructs the clipboard to store its contents remotely.
since: 4.0
Properties
Gdk.Clipboard:content
The GdkContentProvider or NULL if the clipboard is empty or contents are
provided otherwise.
since: 4.0
Signals
Signals inherited from GObject (1)
GObject::notify
The notify signal is emitted on an object when one of its properties has its value set through g_object_set_property(), g_object_set(), et al.
since: 2.0