transform
Description:
Tries to cast the contents of this into a type appropriate to store in dest_value
, e.
g. to transform a g_type_int value into a g_type_float value. Performing transformations between value types might incur precision lossage. Especially transformations into strings might reveal seemingly arbitrary results and shouldn't be relied upon for production code (such as rcfile value or object property serialization).
Parameters:
this |
Source value. |
dest_value |
Target value. |
Returns:
Whether a transformation rule was found and could be applied. Upon failing transformations, |