Package org.gnome.gtk
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
@Generated("io.github.jwharm.JavaGI")
public interface TreeViewColumnDropFunc
extends FunctionPointer
Functional interface declaration of the
TreeViewColumnDropFunc
callback.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionboolean
run
(TreeView treeView, TreeViewColumn column, TreeViewColumn prevColumn, TreeViewColumn nextColumn) Function type for determining whethercolumn
can be dropped in a particular spot (as determined byprevColumn
andnextColumn
).default MemorySegment
toCallback
(Arena arena) Creates a native function pointer to theupcall(java.lang.foreign.MemorySegment, java.lang.foreign.MemorySegment, java.lang.foreign.MemorySegment, java.lang.foreign.MemorySegment, java.lang.foreign.MemorySegment)
method.default int
upcall
(MemorySegment treeView, MemorySegment column, MemorySegment prevColumn, MemorySegment nextColumn, MemorySegment data) Theupcall
method is called from native code.
-
Method Details
-
run
boolean run(TreeView treeView, TreeViewColumn column, TreeViewColumn prevColumn, TreeViewColumn nextColumn) Function type for determining whethercolumn
can be dropped in a particular spot (as determined byprevColumn
andnextColumn
). In left to right locales,prevColumn
is on the left of the potential drop spot, andnextColumn
is on the right. In right to left mode, this is reversed. This function should returntrue
if the spot is a valid drop spot. Please note that returningtrue
does not actually indicate that the column drop was made, but is meant only to indicate a possible drop spot to the user. -
upcall
default int upcall(MemorySegment treeView, MemorySegment column, MemorySegment prevColumn, MemorySegment nextColumn, MemorySegment data) Theupcall
method is called from native code. The parameters are marshaled andrun(org.gnome.gtk.TreeView, org.gnome.gtk.TreeViewColumn, org.gnome.gtk.TreeViewColumn, org.gnome.gtk.TreeViewColumn)
is executed. -
toCallback
Creates a native function pointer to theupcall(java.lang.foreign.MemorySegment, java.lang.foreign.MemorySegment, java.lang.foreign.MemorySegment, java.lang.foreign.MemorySegment, java.lang.foreign.MemorySegment)
method.- Specified by:
toCallback
in interfaceFunctionPointer
- Parameters:
arena
- the function pointer will be allocated in this arena- Returns:
- the native function pointer
-