Function
GObjecttype_register_static_simple
since: 2.12
Declaration [src]
GType
g_type_register_static_simple (
GType parent_type,
const gchar* type_name,
guint class_size,
GClassInitFunc class_init,
guint instance_size,
GInstanceInitFunc instance_init,
GTypeFlags flags
)
Description [src]
Registers type_name as the name of a new static type derived from
parent_type. The value of flags determines the nature (e.g.
abstract or not) of the type. It works by filling a GTypeInfo
struct and calling g_type_register_static().
Available since: 2.12
This function is not directly available to language bindings.
Parameters
parent_type-
Type:
GTypeType from which this type will be derived.
type_name-
Type:
const gchar*0-terminated string used as the name of the new type.
The data is owned by the caller of the function. The value is a NUL terminated UTF-8 string. class_size-
Type:
guintSize of the class structure (see
GTypeInfo). class_init-
Type:
GClassInitFuncLocation of the class initialization function (see
GTypeInfo). instance_size-
Type:
guintSize of the instance structure (see
GTypeInfo). instance_init-
Type:
GInstanceInitFuncLocation of the instance initialization function (see
GTypeInfo). flags-
Type:
GTypeFlagsBitwise combination of
GTypeFlagsvalues.