a pointer to a copy of data.
Frees a Gtk.SelectionData-struct returned from
gtk_selection_data_copy().
Retrieves the raw data of the selection along with its length.
the raw data of the selection
Retrieves the format of the selection.
the format of the selection.
Retrieves the length of the raw data of the selection.
the length of the data of the selection.
Gets the contents of the selection data as a GdkPixbuf.Pixbuf.
if the selection data contained a recognized image type and it could be converted to a GdkPixbuf.Pixbuf, a newly allocated pixbuf is returned, otherwise null. If the result is non-null it must be freed with g_object_unref().
Gets the contents of the selection data as a UTF-8 string.
if the selection data contained a recognized text type and it could be converted to UTF-8, a newly allocated string containing the converted text, otherwise null. If the result is non-null it must be freed with g_free().
Gets the contents of the selection data as array of URIs.
Since 3.24.37, this may involve using the FileTransfer portal to send files between sandboxed apps.
if the selection data contains a list of URIs, a newly allocated null-terminated string array containing the URIs, otherwise null. If the result is non-null it must be freed with g_strfreev().
Stores new data into a Gtk.SelectionData object. Should only be called from a selection handler callback. Zero-terminates the stored data.
Sets the contents of the selection from a GdkPixbuf.Pixbuf
The pixbuf is converted to the form determined by
selection_data->target.
true if the selection was successfully set, otherwise false.
Sets the contents of the selection from a UTF-8 encoded string.
The string is converted to the form determined by
selection_data->target.
a UTF-8 string
the length of str, or -1 if str is nul-terminated.
true if the selection was successfully set, otherwise false.
Sets the contents of the selection from a list of URIs.
The string is converted to the form determined by
selection_data->target.
Since 3.24.37, this may involve using the FileTransfer portal to send files between sandboxed apps.
a null-terminated array of strings holding URIs
true if the selection was successfully set, otherwise false.
Given a Gtk.SelectionData object holding a list of targets,
determines if any of the targets in targets can be used to
provide a GdkPixbuf.Pixbuf.
whether to accept only targets for which GTK+ knows how to convert a pixbuf into the format
true if selection_data holds a list of targets, and a suitable target for images is included, otherwise false.
Given a Gtk.SelectionData object holding a list of targets,
determines if any of the targets in targets can be used to
provide rich text.
true if selection_data holds a list of targets, and a suitable target for rich text is included, otherwise false.
Given a Gtk.SelectionData object holding a list of targets,
determines if any of the targets in targets can be used to
provide text.
true if selection_data holds a list of targets, and a suitable target for text is included, otherwise false.
Given a Gtk.SelectionData object holding a list of targets,
determines if any of the targets in targets can be used to
provide a list or URIs.
true if selection_data holds a list of targets, and a suitable target for URI lists is included, otherwise false.
Makes a copy of a Gtk.SelectionData-struct and its data.