ModelSortFunc


Description:

[ CCode ( instance_pos = 3.9 ) ]
[ Version ( deprecated = true , deprecated_since = "1.24" , since = "0.6" ) ]
public delegate int ModelSortFunc (Model model, Value a, Value b)

Warning: ModelSortFunc is deprecated since 1.24.

Compares the content of two rows in the model.

Note:

Implement sorting using a custom ListModel instead

Parameters:

model

a Model

a

a Value representing the contents of the row

b

a Value representing the contents of the second row

user_data

data passed to set_sort

Returns:

a positive integer if a is after b, a negative integer if a is before b, or 0 if the rows are the same


Namespace: Clutter
Package: clutter-1.0



2022 vala-language.org