value_validate
Description:
[ CCode ( cname = "g_param_value_validate" , vfunc_name = "value_validate" ) ]
public virtual bool value_validate (Value value)
public virtual bool value_validate (Value value)
Ensures that the contents of value
comply with the specifications set out by pspec
.
For example, a ParamSpecInt might require that integers stored in value
may not be smaller than -42 and not be greater than +42. If value
contains an integer outside of this range, it is modified
accordingly, so the resulting value will fit into the range -42 .. +42.
Parameters:
value |
a Value of correct type for |
pspec |
a valid ParamSpec |
Returns:
whether modifying |