Gjsify LogoGjsify Logo

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

The initialized structure is passed to the g_param_type_register_static() The type system will perform a deep copy of this structure, so its memory does not need to be persistent across invocation of g_param_type_register_static().

record

Hierarchy

  • ParamSpecTypeInfo

Index

Constructors

Properties

instance_size: number

Size of the instance (object) structure.

field
n_preallocs: 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
value_type: GType<unknown>

The #GType of values conforming to this #GParamSpec

field
name: string

Methods

  • value_set_default(pspec: ParamSpec, value: any): void
  • value_validate(pspec: ParamSpec, value: any): boolean
  • values_cmp(pspec: ParamSpec, value1: any, value2: any): number

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