Skip to content

GObject.TypeInfo

record (struct)

This structure is used to provide the type system with the information required to initialize and destruct (finalize) a type's class and its instances.

The initialized structure is passed to the type_register_static function (or is copied into the provided TypeInfo structure in the TypePlugin.complete_type_info). The type system will perform a deep copy of this structure, so its memory does not need to be persistent across invocation of type_register_static.

Properties

class_size

class_size: int  # read/write

base_init

base_init: BaseInitFunc  # read/write

base_finalize

base_finalize: BaseFinalizeFunc  # read/write

class_init

class_init: ClassInitFunc  # read/write

class_finalize

class_finalize: ClassFinalizeFunc  # read/write

class_data

class_data: int  # read/write

instance_size

instance_size: int  # read/write

n_preallocs

n_preallocs: int  # read/write

instance_init

instance_init: InstanceInitFunc  # read/write

value_table

value_table: TypeValueTable  # read/write