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.

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

#GTypeInfo structure for this type

finfo GTypeFundamentalInfo*

#GTypeFundamentalInfo structure for this type

flags GTypeFlags

bitwise combination of #GTypeFlags values

Return Value

Type: GType

the predefined type identifier

Meta