Skip to content

API Reference / @gtkx/native / RegisterClassVfunc

Interface: RegisterClassVfunc

Defined in: index.d.ts:146

A single virtual function override for a registered class: which slot to patch and how its arguments and return value are marshalled to and from the JavaScript implementation.

Properties

argDescriptors

argDescriptors: Descriptor[]

Defined in: index.d.ts:150

Descriptor for each argument passed to the JavaScript implementation.


byteOffset

byteOffset: number

Defined in: index.d.ts:148

Byte offset of the vfunc slot within the class (or interface) struct.


fn

fn: (...args) => unknown

Defined in: index.d.ts:154

The JavaScript function that implements the vfunc.

Parameters

args

...never[]

Returns

unknown


returnDescriptor

returnDescriptor: Descriptor

Defined in: index.d.ts:152

Descriptor for the value the JavaScript implementation returns.

Released under the MPL-2.0 License.