Skip to content

API Reference / @gtkx/runtime / registerWrapperClass

Function: registerWrapperClass()

registerWrapperClass(cls, type, vfuncs?): void

Defined in: packages/runtime/dist/registry.d.ts:113

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

Released under the MPL-2.0 License.