type_register


Description:

[ Version ( since = "3.0" ) ]
public static Type type_register (Type parent_type, string type_name, ParamSpec[] pspecs)

This function is a fancy wrapper around g_type_register_static.

It creates a new object type as subclass of parent_type, installs pspecs on it and makes the new type implement the Config interface.

Parameters:

parent_type

type from which this type will be derived

type_name

string used as the name of the new type

pspecs

array of ParamSpec to install as properties on the new type

n_pspecs

the number of param specs in pspecs

Returns:

the newly registered Type