Skip to content

@gtkx/ffi / NativeObject

Abstract Class: NativeObject

Defined in: packages/ffi/src/object.ts:9

Base class for all GLib/GTK native objects managed by the FFI layer.

Every generated binding (GObject, boxed type, interface, etc.) extends this class, which holds the raw native handle used for FFI calls.

Constructors

Constructor

new NativeObject(handle): NativeObject

Defined in: packages/ffi/src/object.ts:14

Parameters

ParameterType
handleNativeHandle

Returns

NativeObject

Properties

handle

handle: NativeHandle

Defined in: packages/ffi/src/object.ts:12


glibTypeName

readonly static glibTypeName: string

Defined in: packages/ffi/src/object.ts:10


objectType

readonly static objectType: "gobject" | "interface" | "boxed" | "struct" | "fundamental"

Defined in: packages/ffi/src/object.ts:11