Package: gtk

Class gtk:drag-icon

Superclasses

Documented Subclasses

None

Direct Slots

child
The child property of type gtk:widget (Read / Write)
The widget to display as drag icon.

Details

The gtk:drag-icon widget is a gtk: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 the gtk:drag-icon-for-drag function to get the icon for a drag. You can then use it like any other widget and use the gtk:drag-icon-child function to set whatever widget should be used for the drag icon.

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

Slot Access Functions

Inherited Slot Access Functions

2023-7-31