It derives from <GtkWidget>.
A <GtkRoot> implementation for drag icons.
A drag icon moves with the pointer during a Drag-and-Drop operation and is destroyed when the drag ends.
To set up a drag icon and associate it with an ongoing drag operation,
use drag-icon:get-for-drag to get
the icon for a drag. You can then use it like any other widget and use
drag-icon:set-child to set whatever
widget should be used for the drag icon.
Keep in mind that drag icons do not allow user input.
The widget to display as drag icon.
Its value is a <GtkWidget>, or #f.
Set it with (set! (drag-icon:child self) value).
Creates a widget that can be used as a drag icon for the given value.
Supported types include strings, <GdkRGBA> and
<GtkTextBuffer>. If GTK does not know how to
create a widget for a given value, it will return #f.
This method is used to set the default drag icon on drag-and-drop
operations started by <GtkDragSource>, so you
don’t need to set a drag icon using this function there.
Passed: a <GValue>.
a <GValue>
Returned: a <GtkWidget>, or #f.
A new <GtkWidget> for displaying value as a
drag icon.
Gets the widget currently used as drag icon.
Passed: a <GtkDragIcon>.
Returned: a <GtkWidget>, or #f.
The drag icon
Gets the <GtkDragIcon> in use with drag.
If no drag icon exists yet, a new one will be created and shown.
Passed: a <GdkDrag>.
Returned: a <GtkWidget>.
the <GtkDragIcon>
Sets the widget to display as the drag icon.
Passed: a <GtkDragIcon>.
Passed, or left out: a <GtkWidget>, or #f.
Creates a <GtkDragIcon> that shows
paintable, and associates it with the drag operation.
The hotspot position on the paintable is aligned with the hotspot of the cursor.
Passed: a <GdkDrag>.
Passed: a <GdkPaintable>.
a <GdkPaintable> to display
Passed: a 32-bit integer.
X coordinate of the hotspot
Passed: a 32-bit integer.
Y coordinate of the hotspot