gtk.selection_data
Module for [SelectionData] class
class SelectionData
Types 1
classSelectionData : gobject.boxed.Boxed
Methods
gtk.selection_data.SelectionData copy() nothrowMakes a copy of a #GtkSelectionData-struct and its data. Returns: a pointer to a copy of data.gdk.atom.Atom getDataType() nothrowRetrieves the data type of the selection. Returns: the data type of the selection.ubyte[] getData() nothrowRetrieves the raw data of the selection along with its length. Returns: the raw data of the selectiongdk.display.Display getDisplay() nothrowRetrieves the display of the selection. Returns: the display of the selection.int getLength() nothrowRetrieves the length of the raw data of the selection. Returns: the length of the data of the selection.gdkpixbuf.pixbuf.Pixbuf getPixbuf() nothrowGets 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() nothrowRetrieves the selection #GdkAtom of the selection data. Returns: the selection #GdkAtom of the selection data.gdk.atom.Atom getTarget() nothrowRetrieves the target of the selection. Returns: the target of the selection.string getText() nothrowGets 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...void set(gdk.atom.Atom type, int format, ubyte[] data) nothrowStores 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) nothrowSets the contents of the selection from a #GdkPixbuf The pixbuf is converted to the form determined by selection_data->target.bool setText(string str) nothrowSets 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) nothrowSets 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) nothrowGiven 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) nothrowGiven 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() nothrowGiven 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() nothrowGiven 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...