Function
GObjecttype_register_static_simple
Declaration
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
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 |
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 value is a NUL terminated UTF-8 string. | |
class_size |
guint |
Size of the class structure (see |
|
class_init |
GClassInitFunc |
Location of the class initialization function (see |
|
instance_size |
guint |
Size of the instance structure (see |
|
instance_init |
GInstanceInitFunc |
Location of the instance initialization function (see |
|
flags |
GTypeFlags |
Bitwise combination of |