DragIcon


Object Hierarchy:

Gtk.DragIcon Gtk.DragIcon Gtk.DragIcon Gtk.Widget Gtk.Widget Gtk.Widget->Gtk.DragIcon GLib.InitiallyUnowned GLib.InitiallyUnowned GLib.InitiallyUnowned->Gtk.Widget GLib.Object GLib.Object GLib.Object->GLib.InitiallyUnowned Gtk.Accessible Gtk.Accessible Gtk.Accessible->Gtk.DragIcon Gtk.Accessible->Gtk.Widget Gtk.Buildable Gtk.Buildable Gtk.Buildable->Gtk.DragIcon Gtk.Buildable->Gtk.Widget Gtk.ConstraintTarget Gtk.ConstraintTarget Gtk.ConstraintTarget->Gtk.DragIcon Gtk.ConstraintTarget->Gtk.Widget Gtk.Native Gtk.Native Gtk.Native->Gtk.DragIcon Gtk.Root Gtk.Root Gtk.Root->Gtk.DragIcon

Description:

[ CCode ( type_id = "gtk_drag_icon_get_type ()" ) ]
public class DragIcon : Widget, Accessible, Buildable, ConstraintTarget, Native, Root

`GtkDragIcon` is 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 [[email protected]_for_drag] to get the icon for a drag. You can then use it like any other widget and use [[email protected]_child] to set whatever widget should be used for the drag icon.

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


Namespace: Gtk
Package: gtk4

Content:

Properties:

Static methods:

Creation methods:

Methods:

Inherited Members:

All known members inherited from class Gtk.Widget
All known members inherited from class GLib.Object
All known members inherited from interface Gtk.Native
All known members inherited from interface Gtk.Root



2022 vala-language.org