Gjsify LogoGjsify Logo

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 g_type_register_static() function (or is copied into the provided #GTypeInfo structure in the g_type_plugin_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 g_type_register_static().

record

Hierarchy

  • TypeInfo

Index

Constructors

Properties

baseFinalize: BaseFinalizeFunc

Location of the base finalization function (optional)

field
baseInit: BaseInitFunc

Location of the base initialization function (optional)

field
classData: object

User-supplied data passed to the class init/finalize functions

field
classFinalize: ClassFinalizeFunc

Location of the class finalization function for classed and instantiatable types. Location of the default vtable finalization function for interface types. (optional)

field

Location of the class initialization function for classed and instantiatable types. Location of the default vtable inititalization function for interface types. (optional) This function is used both to fill in virtual functions in the class or default vtable, and to do type-specific setup such as registering signals and object properties.

field
classSize: number

Size of the class structure (required for interface, classed and instantiatable types)

field
instanceInit: InstanceInitFunc

Location of the instance initialization function (optional, for instantiatable types only)

field
instanceSize: number

Size of the instance (object) structure (required for instantiatable types only)

field
nPreallocs: number

Prior to GLib 2.10, it specified the number of pre-allocated (cached) instances to reserve memory for (0 indicates no caching). Since GLib 2.10, it is ignored, since instances are allocated with the [slice allocator][glib-Memory-Slices] now.

field
valueTable: TypeValueTable

A #GTypeValueTable function table for generic handling of GValues of this type (usually only useful for fundamental types)

field
name: string

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Type alias with type parameter
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method