Valadoc | Vala | Tutorial | API-References | Markup

register_transform_func


Description:

public static void register_transform_func (Type src_type, Type dest_type, ValueTransform transform)

Registers a value transformation function for use in transform. A previously registered transformation function for src_type and dest_type will be replaced.

Parameters:

src_type Source type.
transform_func a function which transforms values of type src_type into value of type dest_type
dest_type Target type.