Interface TreeSelectionFunc

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 TreeSelectionFunc extends FunctionPointer
Deprecated.

Functional interface declaration of the TreeSelectionFunc callback.

See Also:
  • Method Details

    • run

      @Deprecated boolean run(TreeSelection selection, TreeModel model, TreePath path, boolean pathCurrentlySelected)
      Deprecated.
      There is no replacement

      A function used by gtk_tree_selection_set_select_function() to filter whether or not a row may be selected. It is called whenever a row's state might change.

      A return value of true indicates to selection that it is okay to change the selection.

      Parameters:
      selection - A GtkTreeSelection
      model - A GtkTreeModel being viewed
      path - The GtkTreePath of the row in question
      pathCurrentlySelected - true, if the path is currently selected
      Returns:
      true, if the selection state of the row can be toggled
    • upcall

      default int upcall(MemorySegment selection, MemorySegment model, MemorySegment path, int pathCurrentlySelected, MemorySegment data)
      Deprecated.
      The upcall method is called from native code. The parameters are marshaled and run(TreeSelection, TreeModel, TreePath, boolean) is executed.
    • toCallback

      default MemorySegment toCallback(Arena arena)
      Deprecated.
      Creates a native function pointer to the upcall(MemorySegment, MemorySegment, MemorySegment, int, MemorySegment) method.
      Specified by:
      toCallback in interface FunctionPointer
      Parameters:
      arena - the arena in which the function pointer is allocated
      Returns:
      the native function pointer