Basics
Guides
API Reference
Basics
Guides
API Reference
[18:7] extends: object
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
[ctor@Gtk.DragIcon.get_for_drag] to get the icon for a drag. You can then use
it like any other widget and use [method@Gtk.DragIcon.set_child] to set
whatever widget should be used for the drag icon. Keep in mind that drag
icons do not allow user input.
GtkDragIcon (drag = null)
Gets the
GtkDragIconin use with @drag. If no drag icon exists yet, a new one will be created and shown.
drag is a GdkDrag.toNativeHandle (Source)
Normalizes a constructor argument into a raw pointer carrier. Accepts a raw NativeHandle, a raw NativeBuffer returned from
fn.call(...), another generated wrapper exposinghandle(), or null. Returns null when the argument carries no pointer.
Source is the raw handle, raw buffer, wrapper, or null.A raw pointer carrier or null when no pointer is present.getLib ()
Returns the opened native library for this generated wrapper.
The opened native library.handle ()
Returns the wrapped NativeHandle.
The wrapped NativeHandle.isNull ()
Returns true when the wrapped handle is null.
A bool.describe ()
Returns a small string for debugging generated wrappers.
A string.asWidget ()
Wraps this handle as
GtkWidget.
A GtkWidget object.asAccessible ()
Wraps this handle as
GtkAccessible.
A GtkAccessible object.asBuildable ()
Wraps this handle as
GtkBuildable.
A GtkBuildable object.asConstraintTarget ()
Wraps this handle as
GtkConstraintTarget.
A GtkConstraintTarget object.asNative ()
Wraps this handle as
GtkNative.
A GtkNative object.asRoot ()
Wraps this handle as
GtkRoot.
A GtkRoot object.getProperty (string Name)
Reads one generated property by name.
setProperty (string Name, Value)
Writes one generated property by name.
setChild (object Value)
The widget to display as drag icon.
Value is the new property value.None.get_child ()
Gets the widget currently used as drag icon.
The drag icon.set_child (object child)
Sets the widget to display as the drag icon.
child is a GtkWidget.None.[198:14] static extends: object
Generated metadata helpers for DragIcon class surfaces.
properties ()
Returns property metadata for
DragIcon.
A list.
Aussom
Write once. Embed everywhere.
Copyright 2026 Austin Lehman. All rights reserved.