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() static nothrowGet builder for [gtk.drag_icon.DragIcon] Returns: New builder objectgtk.widget.Widget child() @property nothrowGet `child` property. Returns: The widget to display as drag icon.void child(gtk.widget.Widget propval) @property nothrowSet `child` property. Params: propval = The widget to display as drag icon.gtk.widget.Widget createWidgetForValue(gobject.value.Value value) static nothrowCreates a widget that can be used as a drag icon for the given value.gtk.widget.Widget getForDrag(gdk.drag.Drag drag) static nothrowGets the [gtk.drag_icon.DragIcon] in use with drag.void setFromPaintable(gdk.drag.Drag drag, gdk.paintable.Paintable paintable, int hotX, int hotY) static nothrowCreates a [gtk.drag_icon.DragIcon] that shows paintable, and associates it with the drag operation.gtk.widget.Widget getChild() nothrowGets the widget currently used as drag icon. Returns: The drag iconclassDragIconGidBuilderImpl(T) : gtk.widget.WidgetGidBuilderImpl!T, gtk.native.NativeGidBuilderImpl!T, gtk.root.RootGidBuilderImpl!T
Fluent builder implementation template for gtk.drag_icon.DragIcon
Methods
T child(gtk.widget.Widget propval) nothrowSet `child` property. Params: propval = The widget to display as drag icon. Returns: Builder instance for fluent chainingFluent builder for gtk.drag_icon.DragIcon