ParamSpec.gParamValueConvert

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 g_value_type_transformable(), g_value_transform() and g_param_value_validate().

class ParamSpec
int
gParamValueConvert

Parameters

srcValue Value

souce GValue

destValue Value

destination GValue of correct type for pspec

strictValidation int

TRUE requires dest_value to conform to pspec without modifications

Return Value

Type: int

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

Meta