Type.registerStaticSimple

Registers @type_name as the name of a new static type derived from @parent_type. The value of @flags determines the nature (e.g. abstract or not) of the type. It works by filling a #GTypeInfo struct and calling g_type_register_static().

Parameters

parentType GType

type from which this type will be derived

typeName string

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

classSize uint

size of the class structure (see #GTypeInfo)

classInit GClassInitFunc

location of the class initialization function (see #GTypeInfo)

instanceSize uint

size of the instance structure (see #GTypeInfo)

instanceInit GInstanceInitFunc

location of the instance initialization function (see #GTypeInfo)

flags GTypeFlags

bitwise combination of #GTypeFlags values

Return: the new type identifier

Meta

Since

2.12