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 TypeMethodDescriptionvoid
run
(TreePath path, TreeIter iter, @Nullable MemorySegment newOrder) This signal is emitted when the children of a node in theGtkTreeModel
have been reordered.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)
method.default void
upcall
(MemorySegment sourceTreeModel, MemorySegment path, MemorySegment iter, MemorySegment newOrder) Theupcall
method is called from native code.
-
Method Details
-
run
This signal is emitted when the children of a node in theGtkTreeModel
have 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) Theupcall
method 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:
toCallback
in interfaceFunctionPointer
- Parameters:
arena
- the function pointer will be allocated in this arena- Returns:
- the native function pointer
-