DragIcon


Object Hierarchy:

Object hierarchy for DragIcon

Description:

[ CCode ( type_id = "gtk_drag_icon_get_type ()" ) ]
public class DragIcon : Widget, Accessible, Buildable, ConstraintTarget, Native, Root

GtkDragIcon is a Root implementation with the sole purpose to serve as a drag icon during DND operations.

A drag icon moves with the pointer during a drag operation and is destroyed when the drag ends.

To set up a drag icon and associate it with an ongoing drag operation, use get_for_drag to get the icon for a drag. You can then use it like any other widget and use set_child to set whatever widget should be used for the drag icon.

Keep in mind that drag icons do not allow user input.


Namespace: Gtk
Package: gtk4

Content:

Properties:

Static methods:

Creation methods:

Methods:

Inherited Members:

All known members inherited from class Gtk.Widget
All known members inherited from interface Gtk.Native
All known members inherited from interface Gtk.Root