Class (GI Struct)

GObject-2.0GObjectTypeInterface

An opaque structure used as the base of all interface types.

Index

Constructors

Properties

Methods

  • Returns the corresponding GObject.TypeInterface structure of the parent type of the instance type to which g_iface belongs.

    This is useful when deriving the implementation of an interface from the parent type and then possibly overriding some methods.

    Returns TypeInterface

    the corresponding GObject.TypeInterface structure of the parent type of the instance type to which g_iface belongs, or null if the parent type doesn't conform to the interface

  • Adds prerequisite_type to the list of prerequisites of interface_type. This means that any type implementing interface_type must also implement prerequisite_type. Prerequisites can be thought of as an alternative to interface derivation (which GType doesn't support). An interface can have at most one instantiatable prerequisite type.

    Parameters

    Returns void

  • Returns the most specific instantiatable prerequisite of an interface type. If the interface type has no instantiatable prerequisite, G_TYPE_INVALID is returned.

    See g_type_interface_add_prerequisite() for more information about prerequisites.

    Parameters

    • interface_type: GType

      an interface type

    Returns GType