Skip to main content

Abstract Class: NativeObject

Defined in: packages/ffi/src/native/base.ts:11

Base class for all GTK/GLib object wrappers.

Provides common functionality for native object representation including type metadata and equality comparison.

See

getNativeObject for creating wrapper instances

Extended by

Constructors

Constructor

new NativeObject(..._args): NativeObject

Defined in: packages/ffi/src/native/base.ts:22

Parameters

ParameterType
..._argsany[]

Returns

NativeObject

Properties

handle

handle: NativeHandle

Defined in: packages/ffi/src/native/base.ts:19

The underlying native handle


glibTypeName

readonly static glibTypeName: string

Defined in: packages/ffi/src/native/base.ts:13

The GLib type name (e.g., "GtkButton", "AdwHeaderBar")


objectType

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

Defined in: packages/ffi/src/native/base.ts:16

The type category: gobject, interface, boxed, struct, or fundamental