Class TreeDragSource

All Implemented Interfaces:
PointerInterface

public class TreeDragSource extends Interface
Interface for Drag-and-Drop destinations in `GtkTreeView`.

https://docs.gtk.org/gtk4/iface.TreeDragSource.html

  • Constructor Details

  • Method Details

    • getClassHandler

      public static ClassHandler getClassHandler()
    • dragDataDelete

      public boolean dragDataDelete(@Nonnull TreePath path)
      Asks the `GtkTreeDragSource` 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:
      path - row that was being dragged
      Returns:
      %TRUE if the row was successfully deleted
    • dragDataGet

      public ContentProvider dragDataGet(@Nonnull TreePath path)
      Asks the `GtkTreeDragSource` to return a `GdkContentProvider` representing
      the row at @path. Should robustly handle a @path no
      longer found in the model!
      Parameters:
      path - row that was dragged
      Returns:
      a `GdkContentProvider` for the given @path
    • rowDraggable

      public boolean rowDraggable(@Nonnull TreePath path)
      Asks the `GtkTreeDragSource` 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 - row on which user is initiating a drag
      Returns:
      %TRUE if the row can be dragged
    • getTypeID

      public static long getTypeID()
    • getParentTypeID

      public static long getParentTypeID()
    • getTypeSize

      public static TypeSystem.TypeSize getTypeSize()
    • getParentTypeSize

      public static TypeSystem.TypeSize getParentTypeSize()
    • getInstanceSize

      public static int getInstanceSize()