Skip to content

API Reference / @gtkx/runtime / registerClassStruct

Function: registerClassStruct() ​

registerClassStruct(cls, structClass): void

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

Registers the wrapper class of a type's class struct, such as Gtk.WidgetClass for Gtk.Widget, so registerClass can hand a classInit hook the new type's class struct wrapped in it.

Parameters ​

cls ​

AnyClass

Wrapper class of the type's instances, already registered through registerWrapperClass.

structClass ​

AnyClass

Wrapper class of the type's class struct.

Returns ​

void