Class
GdkDrop
since: 4.0
Description [src]
abstract class Gdk.Drop : GObject.Object
{
/* No available fields */
}
The GdkDrop object represents the target of an ongoing DND operation.
Possible drop sites get informed about the status of the ongoing drag
operation with events of type GDK_DRAG_ENTER, GDK_DRAG_LEAVE,
GDK_DRAG_MOTION and GDK_DROP_START. The GdkDrop object can be obtained
from these GdkEvent types using gdk_dnd_event_get_drop().
The actual data transfer is initiated from the target side via an async
read, using one of the GdkDrop methods for this purpose:
gdk_drop_read_async() or gdk_drop_read_value_async().
GTK provides a higher level abstraction based on top of these functions, and so they are not normally needed in GTK applications. See the “Drag and Drop” section of the GTK documentation for more information.
Available since: 4.0
Instance methods
gdk_drop_get_drag
If this is an in-app drag-and-drop operation, returns the GdkDrag
that corresponds to this drop.
since: 4.0
gdk_drop_get_formats
Returns the GdkContentFormats that the drop offers the data
to be read in.
since: 4.0
gdk_drop_read_async
Asynchronously read the dropped data from a GdkDrop
in a format that complies with one of the mime types.
since: 4.0
gdk_drop_read_value_async
Asynchronously request the drag operation’s contents converted
to the given type.
since: 4.0
Signals
Signals inherited from GObject (1)
GObject::notify
The notify signal is emitted on an object when one of its properties has its value set through g_object_set_property(), g_object_set(), et al.
since: 2.0