TargetList

A #GtkTargetList-struct is a reference counted list of #GtkTargetPair and should be treated as opaque.

Constructors

this
this(void* ptr, Flag!"Take" take)
this
this(gtk.target_entry.TargetEntry[] targets)

Creates a new #GtkTargetList from an array of #GtkTargetEntry.

Members

Functions

_cPtr
void* _cPtr(Flag!"Dup" dup)
add
void add(gdk.atom.Atom target, uint flags, uint info)

Appends another target to a #GtkTargetList.

addImageTargets
void addImageTargets(uint info, bool writable)

Appends the image targets supported by #GtkSelectionData to the target list. All targets are added with the same info.

addRichTextTargets
void addRichTextTargets(uint info, bool deserializable, gtk.text_buffer.TextBuffer buffer)

Appends the rich text targets registered with gtk.text_buffer.TextBuffer.registerSerializeFormat or gtk.text_buffer.TextBuffer.registerDeserializeFormat to the target list. All targets are added with the same info.

addTable
void addTable(gtk.target_entry.TargetEntry[] targets)

Prepends a table of #GtkTargetEntry to a target list.

addTextTargets
void addTextTargets(uint info)

Appends the text targets supported by #GtkSelectionData to the target list. All targets are added with the same info.

addUriTargets
void addUriTargets(uint info)

Appends the URI targets supported by #GtkSelectionData to the target list. All targets are added with the same info.

find
bool find(gdk.atom.Atom target, uint info)

Looks up a given target in a #GtkTargetList.

remove
void remove(gdk.atom.Atom target)

Removes a target from a target list.

self
TargetList self()

Returns this, for use in with statements.

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.