Type.registerDynamic

Registers @type_name as the name of a new dynamic type derived from @parent_type. The type system uses the information contained in the #GTypePlugin structure pointed to by @plugin to manage the type and its instances (if not abstract). The value of @flags determines the nature (e.g. abstract or not) of the type.

struct Type
static
registerDynamic

Parameters

parentType GType

type from which this type will be derived

typeName string

0-terminated string used as the name of the new type

plugin TypePluginIF

#GTypePlugin structure to retrieve the #GTypeInfo from

flags GTypeFlags

bitwise combination of #GTypeFlags values

Return: the new type identifier or #G_TYPE_INVALID if registration failed

Meta