Package org.gnome.gtk
Interface TreeIterCompareFunc
- 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("io.github.jwharm.JavaGI")
public interface TreeIterCompareFunc
extends FunctionPointer
Deprecated.
Functional interface declaration of the
TreeIterCompareFunc callback.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionintDeprecated.There is no replacementdefault MemorySegmenttoCallback(Arena arena) Deprecated.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 intupcall(MemorySegment model, MemorySegment a, MemorySegment b, MemorySegment userData) Deprecated.Theupcallmethod is called from native code.
-
Method Details
-
run
Deprecated.There is no replacementA GtkTreeIterCompareFunc should return a negative integer, zero, or a positive integer ifasorts beforeb,asorts withb,orasorts afterbrespectively.If two iters compare as equal, their order in the sorted model is undefined. In order to ensure that the
GtkTreeSortablebehaves as expected, the GtkTreeIterCompareFunc must define a partial order on the model, i.e. it must be reflexive, antisymmetric and transitive.For example, if
modelis a product catalogue, then a compare function for the “price” column could be one which returnsprice_of(@a) - price_of(@b). -
upcall
Deprecated.Theupcallmethod is called from native code. The parameters are marshaled andrun(org.gnome.gtk.TreeModel, org.gnome.gtk.TreeIter, org.gnome.gtk.TreeIter)is executed. -
toCallback
Deprecated.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
-