Interface

Gtk-4.0GtkTreeDragSourceInterface

Interface for implementing TreeDragSource. Contains only the virtual methods that need to be implemented.

interface Interface {
    vfunc_drag_data_delete(path: Gtk.TreePath): boolean;
    vfunc_drag_data_get(path: Gtk.TreePath): Gdk.ContentProvider;
    vfunc_row_draggable(path: Gtk.TreePath): boolean;
}

Hierarchy (View Summary)

Index

Methods

  • Asks the Gtk.TreeDragSource to delete the row at path, because it was moved somewhere else via drag-and-drop. Returns false if the deletion fails because path no longer exists, or for some model-specific reason. Should robustly handle a path no longer found in the model!

    Parameters

    Returns boolean

  • Asks the Gtk.TreeDragSource whether a particular row can be used as the source of a DND operation. If the source doesn’t implement this interface, the row is assumed draggable.

    Parameters

    • path: Gtk.TreePath

      row on which user is initiating a drag

    Returns boolean