Struct

GtkSelectionData

Description

struct GtkSelectionData {
  /* No available fields */
}

No description available.

Instance methods

gtk_selection_data_copy

Makes a copy of a GtkSelectionData-struct and its data.

gtk_selection_data_free

Frees a GtkSelectionData-struct returned from gtk_selection_data_copy().

gtk_selection_data_get_data

Retrieves the raw data of the selection.

since: 2.14

gtk_selection_data_get_data_type

Retrieves the data type of the selection.

since: 2.14

gtk_selection_data_get_data_with_length

Retrieves the raw data of the selection along with its length.

since: 3.0

gtk_selection_data_get_display

Retrieves the display of the selection.

since: 2.14

gtk_selection_data_get_format

Retrieves the format of the selection.

since: 2.14

gtk_selection_data_get_length

Retrieves the length of the raw data of the selection.

since: 2.14

gtk_selection_data_get_pixbuf

Gets the contents of the selection data as a GdkPixbuf.

since: 2.6

gtk_selection_data_get_selection

Retrieves the selection GdkAtom of the selection data.

since: 2.16

gtk_selection_data_get_target

Retrieves the target of the selection.

since: 2.14

gtk_selection_data_get_targets

Gets the contents of selection_data as an array of targets. This can be used to interpret the results of getting the standard TARGETS target that is always supplied for any selection.

gtk_selection_data_get_text

Gets the contents of the selection data as a UTF-8 string.

gtk_selection_data_get_uris

Gets the contents of the selection data as array of URIs.

since: 2.6

gtk_selection_data_set

Stores new data into a GtkSelectionData object. Should only be called from a selection handler callback. Zero-terminates the stored data.

gtk_selection_data_set_pixbuf

Sets the contents of the selection from a GdkPixbuf The pixbuf is converted to the form determined by selection_data->target.

since: 2.6

gtk_selection_data_set_text

Sets the contents of the selection from a UTF-8 encoded string. The string is converted to the form determined by selection_data->target.

gtk_selection_data_set_uris

Sets the contents of the selection from a list of URIs. The string is converted to the form determined by selection_data->target.

since: 2.6

gtk_selection_data_targets_include_image

Given a GtkSelectionData object holding a list of targets, determines if any of the targets in targets can be used to provide a GdkPixbuf.

since: 2.6

gtk_selection_data_targets_include_rich_text

Given a GtkSelectionData object holding a list of targets, determines if any of the targets in targets can be used to provide rich text.

since: 2.10

gtk_selection_data_targets_include_text

Given a GtkSelectionData object holding a list of targets, determines if any of the targets in targets can be used to provide text.

gtk_selection_data_targets_include_uri

Given a GtkSelectionData object holding a list of targets, determines if any of the targets in targets can be used to provide a list or URIs.

since: 2.10