Package org.gnome.gtk
Interface TreeModel.RowsReorderedCallback
- All Superinterfaces:
FunctionPointer
- Enclosing interface:
TreeModel
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface
public static interface TreeModel.RowsReorderedCallback
extends FunctionPointer
Functional interface declaration of the
RowsReorderedCallback callback.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoidrun(@Nullable TreePath path, @Nullable TreeIter iter, @Nullable MemorySegment newOrder) This signal is emitted when the children of a node in theGtkTreeModelhave been reordered.default MemorySegmenttoCallback(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)method.default voidupcall(MemorySegment sourceTreeModel, MemorySegment path, MemorySegment iter, MemorySegment newOrder) Theupcallmethod is called from native code.
-
Method Details
-
run
This signal is emitted when the children of a node in theGtkTreeModelhave been reordered.Note that this signal is not emitted when rows are reordered by DND, since this is implemented by removing and then reinserting the row.
-
upcall
default void upcall(MemorySegment sourceTreeModel, MemorySegment path, MemorySegment iter, MemorySegment newOrder) Theupcallmethod is called from native code. The parameters are marshaled andrun(org.gnome.gtk.TreePath, org.gnome.gtk.TreeIter, java.lang.foreign.MemorySegment)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)method.- Specified by:
toCallbackin interfaceFunctionPointer- Parameters:
arena- the arena in which the function pointer is allocated- Returns:
- the native function pointer
-