Class
GdkClipboard
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.
Instance methods
gdk_clipboard_read_async
Asynchronously requests an input stream to read the clipboard
‘s
contents from.
gdk_clipboard_read_texture_async
Asynchronously request the clipboard
contents converted to a GdkPixbuf
.
gdk_clipboard_read_value_async
Asynchronously request the clipboard
contents converted to the given
type
.
Properties
Gdk.Clipboard:content
The GdkContentProvider
or NULL
if the clipboard is empty or contents are
provided otherwise.
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.