W Wrapl, The Programming Language

Libraries:Gtk:Gtk:SelectionData

Types

T

Constants

Nil : T

Functions

GetType() : Gtk.GObject.Type.T



_Alloc() : Gtk.Gtk.SelectionData.T



Methods

:"="(_ @ T, _ @ T)

:Copy(self @ T) : Gtk.Gtk.SelectionData.T

Makes a copy of a T structure and its data.

data a pointer to a T structure.
Returns a pointer to a copy of data.


:Free(self @ T) : Std.Object.T

Frees a T structure returned from Copy.

data a pointer to a T structure.


:GetData(self @ T) : Std.String.T

Retrieves the raw data of the selection.

selection_data a pointer to a T structure.
Returns the raw data of the selection.


:GetDataType(self @ T) : Gtk.Gdk.Atom.T

Retrieves the data type of the selection.

selection_data a pointer to a T structure.
Returns the data type of the selection. [transfer none]


:GetDisplay(self @ T) : Gtk.Gdk.Display.T

Retrieves the display of the selection.

selection_data a pointer to a T structure.
Returns the display of the selection. [transfer none]


:GetFormat(self @ T) : Std.Integer.SmallT

Retrieves the format of the selection.

selection_data a pointer to a T structure.
Returns the format of the selection.


:GetLength(self @ T) : Std.Integer.SmallT

Retrieves the length of the raw data of the selection.

selection_data a pointer to a T structure.
Returns the length of the data of the selection.


:GetPixbuf(self @ T) : Gtk.Gdk.Pixbuf.T

Gets the contents of the selection data as a Gtk.Gdk.Pixbuf.T.

selection_data a T
Returns if the selection data contained a recognized image type and it could be converted to a Gtk.Gdk.Pixbuf.T, a newly allocated pixbuf is returned, otherwise NULL. If the result is non-NULL it must be freed with g_object_unref(). [transfer full]


:GetSelection(self @ T) : Gtk.Gdk.Atom.T

Retrieves the selection Gtk.Gdk.Atom.T of the selection data.

selection_data a pointer to a T structure.
Returns the selection Gtk.Gdk.Atom.T of the selection data. [transfer none]


:GetTarget(self @ T) : Gtk.Gdk.Atom.T

Retrieves the target of the selection.

selection_data a pointer to a T structure.
Returns the target of the selection. [transfer none]


:GetTargets(self @ T, targets @ Std.Object.T, n_atoms @ Std.Object.T) : Std.Symbol.T

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.

selection_data a T object
targets location to store an array of targets. The result stored here must be freed with g_free(). [out][array length=n_atoms][transfer container]
n_atoms location to store number of items in targets.
Returns TRUE if selection_data contains a valid array of targets, otherwise FALSE.


:GetText(self @ T) : Std.String.T

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

selection_data a T
Returns 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().


:GetUris(self @ T) : Agg.List.T

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

selection_data a T
Returns 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(). [array zero-terminated=1][element-type utf8][transfer full]


:Set(self @ T, type @ Gtk.Gdk.Atom.T, format @ Std.Integer.SmallT, data @ Std.String.T, length @ Std.Integer.SmallT) : Std.Object.T

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

selection_data a pointer to a T structure.
type the type of selection data
format format (number of bits in a unit)
data pointer to the data (will be copied). [array length=length]
length length of the data


:SetPixbuf(self @ T, pixbuf @ Gtk.Gdk.Pixbuf.T) : Std.Symbol.T

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

selection_data a T
pixbuf a Gtk.Gdk.Pixbuf.T
Returns TRUE if the selection was successfully set, otherwise FALSE.


:SetText(self @ T, str @ Std.String.T, len @ Std.Integer.SmallT) : Std.Symbol.T

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

selection_data a T
str a UTF-8 string
len the length of str, or -1 if str is nul-terminated.
Returns TRUE if the selection was successfully set, otherwise FALSE.


:SetUris(self @ T, uris @ Agg.List.T) : Std.Symbol.T

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

selection_data a T
uris a NULL-terminated array of strings holding URIs. [array zero-terminated=1]
Returns TRUE if the selection was successfully set, otherwise FALSE.


:TargetsIncludeImage(self @ T, writable @ Std.Symbol.T) : Std.Symbol.T

Given a T object holding a list of targets, determines if any of the targets in targets can be used to provide a Gtk.Gdk.Pixbuf.T.

selection_data a T object
writable whether to accept only targets for which GTK+ knows how to convert a pixbuf into the format
Returns TRUE if selection_data holds a list of targets, and a suitable target for images is included, otherwise FALSE.


:TargetsIncludeRichText(self @ T, buffer @ Gtk.Gtk.TextBuffer.T) : Std.Symbol.T

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

selection_data a T object
buffer a Gtk.Gtk.TextBuffer.T
Returns TRUE if selection_data holds a list of targets, and a suitable target for rich text is included, otherwise FALSE.


:TargetsIncludeText(self @ T) : Std.Symbol.T

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

selection_data a T object
Returns TRUE if selection_data holds a list of targets, and a suitable target for text is included, otherwise FALSE.


:TargetsIncludeUri(self @ T) : Std.Symbol.T

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

selection_data a T object
Returns TRUE if selection_data holds a list of targets, and a suitable target for URI lists is included, otherwise FALSE.


:"~="(_ @ T, _ @ T)