Package ch.bailu.gtk.gio
Schnittstelle ListStore.OnCompareDataFunc
- Umschließende Klasse:
ListStore
- Funktionsschnittstelle:
- Dies ist eine funktionale Schnittstelle, die somit als Zuweisungsziel für einen Lambdaausdruck oder eine Methodenreferenz verwendet werden kann.
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungint
onCompareDataFunc
(CallbackHandler __self, Pointer a, Pointer b, Pointer user_data) Specifies the type of a comparison function used to compare two
values.
-
Methodendetails
-
onCompareDataFunc
int onCompareDataFunc(CallbackHandler __self, @Nullable Pointer a, @Nullable Pointer b, @Nullable Pointer user_data) Specifies the type of a comparison function used to compare two
values. The function should return a negative integer if the first
value comes before the second, 0 if they are equal, or a positive
integer if the first value comes after the second.- Parameter:
a
- a valueb
- a value to compare withuser_data
- user data- Gibt zurück:
- negative value if @a < @b; zero if @a = @b; positive value if @a > @b
-