Type.registerStatic

Registers type_name as the name of a new static type derived from parent_type. The type system uses the information contained in the GTypeInfo structure pointed to by info 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.

class Type
static
registerStatic

Parameters

parentType GType

Type from which this type will be derived.

typeName string

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

info GTypeInfo*

The GTypeInfo structure for this type.

flags GTypeFlags

Bitwise combination of GTypeFlags values.

Return Value

Type: GType

The new type identifier.

Meta