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.

@FunctionalInterface public static interface SorterClass.OnCompare
  • Method Details

    • onCompare

      int onCompare(CallbackHandler __self, @Nonnull Sorter self, @Nullable Pointer item1, @Nullable Pointer item2)
      Parameters:
      self - a `GtkSorter`
      item1 - first item to compare
      item2 - second item to compare
      Returns:
      %GTK_ORDERING_EQUAL if @item1 == @item2, %GTK_ORDERING_SMALLER if @item1 < @item2, %GTK_ORDERING_LARGER if @item1 > @item2