TargetEntry

A gtk.TargetEntry represents a single type of data than can be supplied for by a widget for a selection or for supplied or received during drag-and-drop.

Constructors

this
this(GtkTargetEntry* gtkTargetEntry, bool ownedRef)

Sets our main struct and passes it to the parent class.

this
this(string target, uint flags, uint info)

Makes a new gtk.TargetEntry

Destructor

A destructor is present on this object, but not explicitly documented in the source.

Members

Functions

copy
TargetEntry copy()

Makes a copy of a gtk.TargetEntry and its data.

free
void free()

Frees a gtk.TargetEntry returned from TargetEntry.new or TargetEntry.copy.

getStruct
void* getStruct()

the main Gtk struct as a void*

getTargetEntryStruct
GtkTargetEntry* getTargetEntryStruct(bool transferOwnership)

Get the main Gtk struct

Properties

flags
uint flags [@property getter]
uint flags [@property setter]

GtkTargetFlags for DND

info
uint info [@property getter]
uint info [@property setter]

an application-assigned integer ID which will get passed as a parameter to e.g the selection-get signal. It allows the application to identify the target type without extensive string compares.

target
string target [@property getter]
string target [@property setter]

a string representation of the target type

Static functions

getType
GType getType()

Variables

gtkTargetEntry
GtkTargetEntry* gtkTargetEntry;

the main Gtk struct