paramValueConvert

fnbool paramValueConvert(gobject.param_spec.ParamSpec pspec, gobject.value.Value srcValue, gobject.value.Value destValue, bool strictValidation)

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.Value.typeTransformable, gobject.value.Value.transform and gobject.global.paramValueValidate.

Parameters

pspeca valid #GParamSpec
srcValuesource #GValue
destValuedestination #GValue of correct type for pspec
strictValidationtrue 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.