value_convert


Description:

[ CCode ( cname = "g_param_value_convert" ) ]
public bool value_convert (Value src_value, ref Value dest_value, bool strict_validation)

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 type_transformable, transform and value_validate.

Parameters:

src_value

source Value

dest_value

destination Value of correct type for pspec

strict_validation

true requires dest_value to conform to pspec without modifications

pspec

a valid ParamSpec

Returns:

true if transformation and validation were successful, false otherwise and dest_value is left untouched.




2022 vala-language.org