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

class ParamSpec
static
bool
paramValueConvert

Parameters

pspec ParamSpec

a valid #GParamSpec

srcValue Value

souce #GValue

destValue Value

destination #GValue of correct type for @pspec

strictValidation bool

%TRUE requires @dest_value to conform to @pspec without modifications

Return: %TRUE if transformation and validation were successful, %FALSE otherwise and @dest_value is left untouched.

Meta