Skip to content

API Reference / @gtkx/runtime / registerWrapperClass

Function: registerWrapperClass() ​

registerWrapperClass(cls, type, vfuncs?): void

Defined in: packages/runtime/src/registry.ts:206

Registers a wrapper class as the JS representation of a GType, optionally installing a registry of virtual functions.

Parameters ​

cls ​

AnyClass

Wrapper class to associate with the type.

type ​

bigint

GType the class wraps.

vfuncs? ​

VfuncRegistry

Vtable slots the class exposes, so registerClass can bind the ones a subclass overrides.

Returns ​

void