Interface TreeViewColumnDropFunc

All Superinterfaces:
FunctionPointer
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface @Deprecated @Generated("org.javagi.JavaGI") public interface TreeViewColumnDropFunc extends FunctionPointer
Deprecated.

Functional interface declaration of the TreeViewColumnDropFunc callback.

See Also:
  • Method Details

    • run

      @Deprecated boolean run(TreeView treeView, TreeViewColumn column, TreeViewColumn prevColumn, TreeViewColumn nextColumn)
      Deprecated.
      There is no replacement.
      Function type for determining whether column can be dropped in a particular spot (as determined by prevColumn and nextColumn). In left to right locales, prevColumn is on the left of the potential drop spot, and nextColumn is on the right. In right to left mode, this is reversed. This function should return true if the spot is a valid drop spot. Please note that returning true does not actually indicate that the column drop was made, but is meant only to indicate a possible drop spot to the user.
      Parameters:
      treeView - A GtkTreeView
      column - The GtkTreeViewColumn being dragged
      prevColumn - A GtkTreeViewColumn on one side of column
      nextColumn - A GtkTreeViewColumn on the other side of column
      Returns:
      true, if column can be dropped in this spot
    • upcall

      default int upcall(MemorySegment treeView, MemorySegment column, MemorySegment prevColumn, MemorySegment nextColumn, MemorySegment data)
      Deprecated.
      The upcall method is called from native code. The parameters are marshaled and run(TreeView, TreeViewColumn, TreeViewColumn, TreeViewColumn) is executed.
    • toCallback

      default MemorySegment toCallback(Arena arena)
      Deprecated.
      Specified by:
      toCallback in interface FunctionPointer
      Parameters:
      arena - the arena in which the function pointer is allocated
      Returns:
      the native function pointer