Package ch.bailu.gtk.gtk
Interface SorterClass.OnCompare
- Enclosing class:
- SorterClass
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
-
Method Summary
Modifier and TypeMethodDescriptionint
onCompare
(CallbackHandler __self, Sorter self, Pointer item1, Pointer item2)
-
Method Details
-
onCompare
int onCompare(CallbackHandler __self, @Nonnull Sorter self, @Nullable Pointer item1, @Nullable Pointer item2) - Parameters:
self
- a `GtkSorter`item1
- first item to compareitem2
- second item to compare- Returns:
- %GTK_ORDERING_EQUAL if @item1 == @item2, %GTK_ORDERING_SMALLER if @item1 < @item2, %GTK_ORDERING_LARGER if @item1 > @item2
-