Gjsify LogoGjsify Logo

Structure representing all of a class's property implementations. One of these structures may be placed in the layout of an object class structure.

In addition to the documented fields, there are 7 pointers reserved for future use, which must be initialized to %NULL.

record

Hierarchy

  • DBusPropertiesMixinClass

Index

Constructors

Properties

Methods

Constructors

Properties

An array of interface implementations, terminated by one with name equal to %NULL

field
name: string

Methods

  • Initialize the class cls to use the D-Bus Properties mixin. The given struct member, of size sizeof(TpDBusPropertiesMixinClass), will be used to store property implementation information.

    Each property and each interface must have been declared as a member of a GInterface implemented by cls, using tp_svc_interface_set_dbus_properties_info().

    Before calling this function, the array interfaces must have been placed in the #TpDBusPropertiesMixinClass structure; if it would be empty, it may instead be %NULL.

    This function should be called from the class_init callback in such a way that it will only be called once, even if the class is subclassed.

    Changed in 0.7.9: TpDBusPropertiesMixinClass::interfaces may now be %NULL, which means that only interfaces whose properties are set up using tp_dbus_properties_mixin_implement_interface() will be used.

    Changed in 0.7.15: offset may now be 0, in which case the #TpDBusPropertiesMixinClass can be omitted from cls. It is treated as if it were present, but with all fields (including TpDBusPropertiesMixinClass::interfaces) being %NULL, so only interfaces whose properties are set using tp_dbus_properties_mixin_implement_interface() will be used.

    Parameters

    • cls: GObject.ObjectClass

      a subclass of #GObjectClass

    • offset: number

      the offset within cls of a TpDBusPropertiesMixinClass structure

    Returns void

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Type alias with type parameter
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method