Class TreeDragDest

All Implemented Interfaces:
PointerInterface

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

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

  • Constructor Details

  • Method Details

    • getClassHandler

      public static ClassHandler getClassHandler()
    • dragDataReceived

      public boolean dragDataReceived(@Nonnull TreePath dest, @Nonnull Value value)
      Asks the `GtkTreeDragDest` to insert a row before the path @dest,
      deriving the contents of the row from @value. If @dest is
      outside the tree so that inserting before it is impossible, %FALSE
      will be returned. Also, %FALSE may be returned if the new row is
      not created for some model-specific reason. Should robustly handle
      a @dest no longer found in the model!
      Parameters:
      dest - row to drop in front of
      value - data to drop
      Returns:
      whether a new row was created before position @dest
    • rowDropPossible

      public boolean rowDropPossible(@Nonnull TreePath dest_path, @Nonnull Value value)
      Determines whether a drop is possible before the given @dest_path,
      at the same depth as @dest_path. i.e., can we drop the data in
      @value at that location. @dest_path does not have to
      exist; the return value will almost certainly be %FALSE if the
      parent of @dest_path doesn’t exist, though.
      Parameters:
      dest_path - destination row
      value - the data being dropped
      Returns:
      %TRUE if a drop is possible before @dest_path
    • 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()