TargetEntry

A #GtkTargetEntry 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 #GtkTargetEntry.

Destructor

~this
~this()
Undocumented in source.

Members

Functions

copy
TargetEntry copy()

Makes a copy of a #GtkTargetEntry and its data.

free
void free()

Frees a #GtkTargetEntry returned from gtk_target_entry_new() or gtk_target_entry_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 #GtkWidget::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

ownedRef
bool ownedRef;
Undocumented in source.

Meta