Sets our main struct and passes it to the parent class
Makes a copy of a GtkSelectionData structure and its data.
Frees a GtkSelectionData structure returned from gtk_selection_data_copy().
Retrieves the raw data of the selection. Since 2.14
Retrieves the data type of the selection. Since 2.14
Retrieves the raw data of the selection along with its length.
Retrieves the display of the selection. Since 2.14
Retrieves the format of the selection. Since 2.14
Retrieves the length of the raw data of the selection. Since 2.14
Gets the contents of the selection data as a GdkPixbuf. Since 2.6
Retrieves the selection GdkAtom of the selection data. Since 2.16
Retrieves the target of the selection. Since 2.14
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.
Gets the contents of the selection data as a UTF-8 string.
Gets the contents of the selection data as array of URIs. Since 2.6
Stores new data into a GtkSelectionData object. Should only be called from a selection handler callback. Zero-terminates the stored data.
Sets the contents of the selection from a GdkPixbuf The pixbuf is converted to the form determined by selection_data->target. Since 2.6
Sets the contents of the selection from a UTF-8 encoded string. The string is converted to the form determined by selection_data->target.
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
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
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
Given a GtkSelectionData object holding a list of targets, determines if any of the targets in targets can be used to provide text.
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
the main Gtk struct as a void*
Appends a specified target to the list of supported targets for a given widget and selection.
Prepends a table of targets to the list of supported targets for a given widget and selection.
Remove all targets registered for the given selection for the widget.
Requests the contents of a selection. When received, a "selection-received" signal will be generated.
Claims ownership of a given selection for a particular widget, or, if widget is NULL, release ownership of the selection.
Claim ownership of a given selection for a particular widget, or, if widget is NULL, release ownership of the selection. Since 2.2
Removes all handlers and unsets ownership of all selections for a widget. Called when widget is being destroyed. This function will not generally be called by applications.
the main Gtk struct
Provide a copy of a boxed structure src_boxed which is of type boxed_type.
Free the boxed structure boxed which is of type boxed_type.
This function creates a new G_TYPE_BOXED derived type id for a new boxed type with name name. Boxed type handling functions have to be provided to copy and free opaque boxed structures of this type.
Creates a new G_TYPE_POINTER derived type id for a new pointer type with name name.
The selection mechanism provides the basis for different types of communication between processes. In particular, drag and drop and GtkClipboard work via selections. You will very seldom or never need to use most of the functions in this section directly; GtkClipboard provides a nicer interface to the same functionality.
Some of the datatypes defined this section are used in the GtkClipboard and drag-and-drop API's as well. The GtkTargetEntry structure and GtkTargetList objects represent lists of data types that are supported when sending or receiving data. The GtkSelectionData object is used to store a chunk of data along with the data type and other associated information.