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

instanceSize: number

Size of the instance (object) structure.

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
valueType: GType<unknown>

The #GType of values conforming to this #GParamSpec

field
name: string

Methods

  • valueSetDefault(pspec: ParamSpec, value: any): void
  • valueValidate(pspec: ParamSpec, value: any): boolean
  • valuesCmp(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