Type.registerFundamental

Registers type_id as the predefined identifier and type_name as the name of a fundamental type. If type_id is already registered, or a type named type_name is already registered, the behaviour is undefined. The type system uses the information contained in the GTypeInfo structure pointed to by info and the GTypeFundamentalInfo structure pointed to by finfo to manage the type and its instances. The value of flags determines additional characteristics of the fundamental type.

class Type
static
registerFundamental

Parameters

typeId GType

A predefined type identifier.

typeName string

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

info GTypeInfo*

The GTypeInfo structure for this type.

finfo GTypeFundamentalInfo*

The GTypeFundamentalInfo structure for this type.

flags GTypeFlags

Bitwise combination of GTypeFlags values.

Return Value

Type: GType

The predefined type identifier.

Meta