DropTarget.this

Creates a new GtkDropTarget object.

If the drop target should support more than 1 type, pass %G_TYPE_INVALID for @type and then call [method@Gtk.DropTarget.set_gtypes].

  1. this(GtkDropTarget* gtkDropTarget, bool ownedRef)
  2. this(GType type, GdkDragAction actions)
    class DropTarget

Parameters

type GType

The supported type or %G_TYPE_INVALID

actions GdkDragAction

the supported actions

Return Value

the new GtkDropTarget

Throws

ConstructionException GTK+ fails to create the object.

Meta