Skip to content

API Reference / @gtkx/runtime / getInstanceType

Function: getInstanceType() ​

getInstanceType(instance): bigint

Defined in: packages/runtime/src/registry.ts:173

Returns the GType the given instance's handle carries, or the invalid type when it has no handle. This is the object's own type rather than the type of the class it was wrapped as, and the two differ for an object GTK created itself, such as the row widget inside a Gtk.ListView, which GTKX wraps as the nearest registered ancestor.

Parameters ​

instance ​

object

Returns ​

bigint