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 Summary
Modifier and TypeMethodDescriptionbooleanrun(TreeSelection selection, TreeModel model, TreePath path, boolean pathCurrentlySelected) Deprecated.There is no replacementdefault MemorySegmenttoCallback(Arena arena) Deprecated.Creates a native function pointer to theupcall(MemorySegment, MemorySegment, MemorySegment, int, MemorySegment)method.default intupcall(MemorySegment selection, MemorySegment model, MemorySegment path, int pathCurrentlySelected, MemorySegment data) Deprecated.Theupcallmethod is called from native code.
-
Method Details
-
run
@Deprecated boolean run(TreeSelection selection, TreeModel model, TreePath path, boolean pathCurrentlySelected) Deprecated.There is no replacementA 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
trueindicates toselectionthat it is okay to change the selection.- Parameters:
selection- AGtkTreeSelectionmodel- AGtkTreeModelbeing viewedpath- TheGtkTreePathof the row in questionpathCurrentlySelected-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.Theupcallmethod is called from native code. The parameters are marshaled andrun(TreeSelection, TreeModel, TreePath, boolean)is executed. -
toCallback
Deprecated.Creates a native function pointer to theupcall(MemorySegment, MemorySegment, MemorySegment, int, MemorySegment)method.- Specified by:
toCallbackin interfaceFunctionPointer- Parameters:
arena- the arena in which the function pointer is allocated- Returns:
- the native function pointer
-