Skip to content

API Reference / @gtkx/runtime / getObjectProperty

Function: getObjectProperty() ​

getObjectProperty(obj, propertyName, descriptor): unknown

Defined in: packages/runtime/dist/object.d.ts:57

Reads a GObject property and converts it to its JavaScript value using the descriptor.

Parameters ​

obj ​

object

The object to read from.

propertyName ​

string

The property name.

descriptor ​

Descriptor

Describes the property's type.

Returns ​

unknown