Skip to content

API Reference / @gtkx/runtime / setObjectProperty

Function: setObjectProperty()

setObjectProperty(obj, propertyName, descriptor, jsValue): void

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

Writes a JavaScript value to a GObject property, converting it to native form using the descriptor.

Parameters

obj

object

The object to write to.

propertyName

string

The property name.

descriptor

Descriptor

Describes the property's type.

jsValue

unknown

The value to set.

Returns

void

Released under the MPL-2.0 License.