API Reference / @gtkx/runtime / registerInterface
Function: registerInterface()
registerInterface(
cls,type,mixin,vfuncs?):void
Defined in: runtime/dist/registry.d.ts:54
Registers a GInterface, associating its GType with a mixin used to compose the interface onto wrapper classes and an optional virtual function registry.
Parameters
cls
AnyClass
Class carrying the interface's GType tag.
type
bigint
GType of the interface.
mixin
Mixin that applies the interface to a wrapper class.
vfuncs?
VfuncRegistry
Vtable slots the interface exposes, so registerClass can bind the ones an implementing class overrides.
Returns
void