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.

struct 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*

#GTypeInfo structure for this type

flags GTypeFlags

bitwise combination of #GTypeFlags values

Return Value

Type: GType

the new type identifier

Meta