SelectionData

Constructors

this
this(void* ptr, Flag!"Take" take)

Members

Functions

_cPtr
void* _cPtr(Flag!"Dup" dup)
copy
gtk.selection_data.SelectionData copy()

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

getData
ubyte[] getData()

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

getDataType
gdk.atom.Atom getDataType()

Retrieves the data type of the selection.

getDisplay
gdk.display.Display getDisplay()

Retrieves the display of the selection.

getFormat
int getFormat()

Retrieves the format of the selection.

getLength
int getLength()

Retrieves the length of the raw data of the selection.

getPixbuf
gdkpixbuf.pixbuf.Pixbuf getPixbuf()

Gets the contents of the selection data as a #GdkPixbuf.

getSelection
gdk.atom.Atom getSelection()

Retrieves the selection #GdkAtom of the selection data.

getTarget
gdk.atom.Atom getTarget()

Retrieves the target of the selection.

getText
string getText()

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

getUris
string[] getUris()

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

self
SelectionData self()

Returns this, for use in with statements.

set
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.

setPixbuf
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.

setText
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.

setUris
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.

targetsIncludeImage
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.

targetsIncludeRichText
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.

targetsIncludeText
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.

targetsIncludeUri
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.

Properties

_gType
GType _gType [@property getter]

Static functions

_getGType
GType _getGType()

Inherited Members

From Boxed

_cInstancePtr
void* _cInstancePtr;

Pointer to the C boxed value

_getGType
GType _getGType()

Get the GType of this boxed type.

_gType
GType _gType [@property getter]

Boxed GType property.

self
Boxed self()

Convenience method to return this cast to a type. For use in D with statements.

boxCopy
void* boxCopy()

Make a copy of the wrapped C boxed data.

boxedCopy
void* boxedCopy(void* cBoxed)

Copy a C boxed value using g_boxed_copy.

boxedFree
void boxedFree(void* cBoxed)

Free a C boxed value using g_boxed_free.