Interface TreeListModelCreateModelFunc
- 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("org.javagi.JavaGI")
public interface TreeListModelCreateModelFunc
extends FunctionPointer
Functional interface declaration of the TreeListModelCreateModelFunc callback.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionPrototype of the function called to create new child models when gtk_tree_list_row_set_expanded() is called.default MemorySegmenttoCallback(Arena arena) Creates a native function pointer to theupcall(MemorySegment, MemorySegment)method.default MemorySegmentupcall(MemorySegment item, MemorySegment userData) Theupcallmethod is called from native code.
-
Method Details
-
run
Prototype of the function called to create new child models when gtk_tree_list_row_set_expanded() is called.
This function can return
nullto indicate thatitemis guaranteed to be a leaf node and will never have children. If it does not have children but may get children later, it should return an empty model that is filled once children arrive.- Parameters:
item- The item that is being expanded- Returns:
- The model tracking the children of
itemornullifitemcan never have children
-
upcall
Theupcallmethod is called from native code. The parameters are marshaled andrun(GObject)is executed. -
toCallback
Creates a native function pointer to theupcall(MemorySegment, MemorySegment)method.- Specified by:
toCallbackin interfaceFunctionPointer- Parameters:
arena- the arena in which the function pointer is allocated- Returns:
- the native function pointer
-