GObject.param_value_convert
function param_value_convert(pspec: GObject.ParamSpec, src_value: Any, dest_value: Any, strict_validation: Boolean): Boolean {
// Gjs wrapper for g_param_value_convert()
}
Transforms src_value into dest_value if possible, and then validates dest_value, in order for it to conform to pspec. If strict_validation is true this function will only succeed if the transformed dest_value complied to pspec without modifications.
See also GObject.value_type_transformable, GObject.Value.transform and GObject.param_value_validate.
- pspec
a valid GObject.ParamSpec
- src_value
souce GObject.Value
- dest_value
destination GObject.Value of correct type for pspec
- strict_validation
true requires dest_value to conform to pspec without modifications
- Returns
true if transformation and validation were successful, false otherwise and dest_value is left untouched.