transform


Description:

public bool transform (ref Value dest_value)

Tries to cast the contents of this into a type appropriate to store in dest_value.

If a transformation is not possible, dest_value is not modified.

For example, this could transform a `G_TYPE_INT` value into a `G_TYPE_FLOAT` value.

Performing transformations between value types might incur precision loss. Especially transformations into strings might reveal seemingly arbitrary results and the format of particular transformations to strings is not guaranteed over time.

Parameters:

this

source value

dest_value

target value

Returns:

true on success; false otherwise