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(). Since 2.12

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 Value

Type: GType

The new type identifier.

Meta