Declaration [src]

g_type_register_static (
  GType parent_type,
  const gchar* type_name,
  const GTypeInfo* info,
  GTypeFlags flags

Description [src]

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.


parent_type GType

Type from which this type will be derived.

type_name const gchar*

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

 The data is owned by the caller of the function.
 The string is a NUL terminated UTF-8 string.
info GTypeInfo

GTypeInfo structure for this type.

 The data is owned by the caller of the function.
flags GTypeFlags

Bitwise combination of GTypeFlags values.

Return value

Returns: GType

The new type identifier.