Skip to content

API Reference / @gtkx/runtime / getObjectProperty

Function: getObjectProperty()

getObjectProperty(obj, propertyName, descriptor): unknown

Defined in: runtime/dist/object.d.ts:20

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

Released under the MPL-2.0 License.