gtk.selection_data

Module for [SelectionData] class

Types 1

Methods
void * _cPtr(Flag!"Dup" dup = No.Dup)
GType _gType() @property
SelectionData self()Returns `this`, for use in `with` statements.
gtk.selection_data.SelectionData copy()Makes a copy of a #GtkSelectionData-struct and its data. Returns: a pointer to a copy of data.
gdk.atom.Atom getDataType()Retrieves the data type of the selection. Returns: the data type of the selection.
ubyte[] getData()Retrieves the raw data of the selection along with its length. Returns: the raw data of the selection
gdk.display.Display getDisplay()Retrieves the display of the selection. Returns: the display of the selection.
int getFormat()Retrieves the format of the selection. Returns: the format of the selection.
int getLength()Retrieves the length of the raw data of the selection. Returns: the length of the data of the selection.
gdkpixbuf.pixbuf.Pixbuf getPixbuf()Gets the contents of the selection data as a #GdkPixbuf. Returns: if the selection data contained a recognized image type and it could be converted to a #GdkPixbuf, a newly allocated pixbuf is retu...
gdk.atom.Atom getSelection()Retrieves the selection #GdkAtom of the selection data. Returns: the selection #GdkAtom of the selection data.
gdk.atom.Atom getTarget()Retrieves the target of the selection. Returns: the target of the selection.
string getText()Gets the contents of the selection data as a UTF-8 string. Returns: if the selection data contained a recognized text type and it could be converted to UTF-8, a newly allocated string containing th...
string[] getUris()Gets the contents of the selection data as array of URIs.
void set(gdk.atom.Atom type, int format, ubyte[] data)Stores new data into a #GtkSelectionData object. Should only be called from a selection handler callback. Zero-terminates the stored data.
bool setPixbuf(gdkpixbuf.pixbuf.Pixbuf pixbuf)Sets the contents of the selection from a #GdkPixbuf The pixbuf is converted to the form determined by selection_data->target.
bool setText(string str)Sets the contents of the selection from a UTF-8 encoded string. The string is converted to the form determined by selection_data->target.
bool setUris(string[] uris)Sets the contents of the selection from a list of URIs. The string is converted to the form determined by selection_data->target.
bool targetsIncludeImage(bool writable)Given a #GtkSelectionData object holding a list of targets, determines if any of the targets in targets can be used to provide a #GdkPixbuf.
bool targetsIncludeRichText(gtk.text_buffer.TextBuffer buffer)Given a #GtkSelectionData object holding a list of targets, determines if any of the targets in targets can be used to provide rich text.
bool targetsIncludeText()Given a #GtkSelectionData object holding a list of targets, determines if any of the targets in targets can be used to provide text. Returns: true if selection_data holds a list of targets, and a s...
bool targetsIncludeUri()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. Returns: true if selection_data holds a list of target...
Constructors
this(void * ptr, Flag!"Take" take)