Package ch.bailu.gtk.gtk
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.
-
Method Summary
Modifier and TypeMethodDescriptionint
onListBoxSortFunc
(CallbackHandler __self, ListBoxRow row1, ListBoxRow row2, Pointer user_data) Compare two rows to determine which should be first.
-
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 rowrow2
- the second rowuser_data
- user data- Returns:
- < 0 if @row1 should be before @row2, 0 if they are equal and > 0 otherwise
-