Function
GObjectparam_value_convert
since: 2.0
Declaration
gboolean
g_param_value_convert (
GParamSpec* pspec,
const GValue* src_value,
GValue* dest_value,
gboolean strict_validation
)
Description
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().
Available since: 2.0
Parameters
pspec-
Type:
GParamSpecA valid
GParamSpec.The data is owned by the caller of the function. src_value-
Type:
GValueSource
GValue.The data is owned by the caller of the function. dest_value-
Type:
GValueDestination
GValueof correct type forpspec.The data is owned by the caller of the function. strict_validation-
Type:
gbooleanTRUErequiresdest_valueto conform topspecwithout modifications.