Interface ListBox.OnListBoxSortFunc

Enclosing class:
ListBox
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 ListBox.OnListBoxSortFunc
  • Method Details

    • onListBoxSortFunc

      int onListBoxSortFunc(CallbackHandler __self, @Nonnull ListBoxRow row1, @Nonnull ListBoxRow row2, @Nullable Pointer user_data)
      Compare two rows to determine which should be first.
      Parameters:
      row1 - the first row
      row2 - the second row
      user_data - user data
      Returns:
      < 0 if @row1 should be before @row2, 0 if they are equal and > 0 otherwise