ObjectClass

class ObjectClass(pointer: <Error class: unknown class><<Error class: unknown class>>, cleaner: <Error class: unknown class>? = null)

The class structure for the GObject type.

|[ // Example of implementing a singleton using a constructor. static MySingleton *the_singleton = NULL;

static GObject* my_singleton_constructor (GType type, guint n_construct_params, GObjectConstructParam *construct_params) { GObject *object;

if (!the_singleton) { object = G_OBJECT_CLASS (parent_class)->constructor (type, n_construct_params, construct_params); the_singleton = MY_SINGLETON (object); } else object = g_object_ref (G_OBJECT (the_singleton));

return object; } ]|

Skipped during bindings generation

  • parameter pspecs: Array parameter of type ParamSpec is not supported

  • parameter n_properties: n_properties: Out parameter is not supported

  • field g_type_class: TypeClass

  • field constructor: Fields with callbacks are not supported

  • field set_property: Fields with callbacks are not supported

  • field get_property: Fields with callbacks are not supported

  • field dispose: Fields with callbacks are not supported

  • field finalize: Fields with callbacks are not supported

  • field dispatch_properties_changed: Fields with callbacks are not supported

  • field notify: Fields with callbacks are not supported

  • field constructed: Fields with callbacks are not supported

Constructors

Link copied to clipboard
constructor()

Allocate a new ObjectClass.

constructor(scope: <Error class: unknown class>)

Allocate a new ObjectClass using the provided AutofreeScope.

constructor(pointer: <Error class: unknown class><<Error class: unknown class>>, cleaner: <Error class: unknown class>? = null)

Properties

Link copied to clipboard
val gobjectObjectClassPointer: <Error class: unknown class><<Error class: unknown class>>

Functions

Link copied to clipboard
fun findProperty(propertyName: String): ParamSpec

Looks up the #GParamSpec for a property of a class.

Link copied to clipboard
fun installProperty(propertyId: <Error class: unknown class>, pspec: ParamSpec)

Installs a new property.

Link copied to clipboard
fun overrideProperty(propertyId: <Error class: unknown class>, name: String)

Registers @property_id as referring to a property with the name