GObject.param_values_cmp
function param_values_cmp(pspec: GObject.ParamSpec, value1: Any, value2: Any): Number(gint) {
// Gjs wrapper for g_param_values_cmp()
}
Compares value1 with value2 according to pspec, and return -1, 0 or +1, if value1 is found to be less than, equal to or greater than value2, respectively.
- pspec
a valid GObject.ParamSpec
- value1
a GObject.Value of correct type for pspec
- value2
a GObject.Value of correct type for pspec
- Returns
-1, 0 or +1, for a less than, equal to or greater than result