gtk.drag_icon
Module for [DragIcon] class
Types 3
[gtk.drag_icon.DragIcon] is a [gtk.root.Root] 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 [gtk.drag_icon.DragIcon.getForDrag] to get the icon for a drag. You can then use it like any other widget and use [gtk.drag_icon.DragIcon.setChild] to set whatever widget should be used for the drag icon.
Keep in mind that drag icons do not allow user input.
Methods
DragIconGidBuilder builder()Get builder for [gtk.drag_icon.DragIcon] Returns: New builder objectgtk.widget.Widget child() @propertyGet `child` property. Returns: The widget to display as drag icon.void child(gtk.widget.Widget propval) @propertySet `child` property. Params: propval = The widget to display as drag icon.gtk.widget.Widget createWidgetForValue(gobject.value.Value value)Creates a widget that can be used as a drag icon for the given value.gtk.widget.Widget getForDrag(gdk.drag.Drag drag)Gets the [gtk.drag_icon.DragIcon] in use with drag.void setFromPaintable(gdk.drag.Drag drag, gdk.paintable.Paintable paintable, int hotX, int hotY)Creates a [gtk.drag_icon.DragIcon] that shows paintable, and associates it with the drag operation.gtk.widget.Widget getChild()Gets the widget currently used as drag icon. Returns: The drag iconvoid setChild(gtk.widget.Widget child = null)Sets the widget to display as the drag icon.classDragIconGidBuilderImpl(T) : gtk.widget.WidgetGidBuilderImpl!T, gtk.native.NativeGidBuilderImpl!T, gtk.root.RootGidBuilderImpl!T
Methods
T child(gtk.widget.Widget propval)Set `child` property. Params: propval = The widget to display as drag icon. Returns: Builder instance for fluent chaining