Skip to content

API Reference / @gtkx/runtime / registerConstructProperties

Function: registerConstructProperties() ​

registerConstructProperties(cls, bindings): void

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

Declares the construct properties a wrapper class accepts, so newObjectWithProperties marshals each one through its descriptor rather than resolving it from the GObject.ParamSpec the type installs. A class inherits the declarations of its ancestors. Registering takes effect immediately, including for classes already constructed from and for subclasses that already inherited an earlier declaration.

Parameters ​

cls ​

AnyClass

The wrapper class the properties are declared on.

bindings ​

ConstructBindings

CamelCased property names mapped to their canonical name and descriptor.

Returns ​

void

Released under the MPL-2.0 License.