ParamSpec.paramValueConvert

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 Value.typeTransformable, Value.transform and g_param_value_validate().

class ParamSpec
static
bool
paramValueConvert

Parameters

pspec ParamSpec
srcValue Value
destValue Value

destination gobject.Value of correct type for pspec

strictValidation bool

TRUE requires dest_value to conform to pspec without modifications

Return Value

Type: bool

TRUE if transformation and validation were successful, FALSE otherwise and dest_value is left untouched.