API Reference / @gtkx/runtime / registerInterface
Function: registerInterface()
registerInterface(
cls,type,mixin,vfuncs?):void
Defined in: runtime/dist/registry.d.ts:39
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
Virtual functions the interface exposes.
Returns
void