Gjsify LogoGjsify Logo

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

record

Hierarchy

  • TypeInterface

Index

Constructors

Properties

name: string

Methods

  • Returns the corresponding #GTypeInterface 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

  • addPrerequisite(interfaceType: GType<unknown>, prerequisiteType: GType<unknown>): void
  • 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

    • interfaceType: GType<unknown>

      #GType value of an interface type

    • prerequisiteType: GType<unknown>

      #GType value of an interface or instantiatable type

    Returns void

  • Returns the #GTypePlugin structure for the dynamic interface interface_type which has been added to instance_type, or %NULL if interface_type has not been added to instance_type or does not have a #GTypePlugin structure. See g_type_add_interface_dynamic().

    Parameters

    • instanceType: GType<unknown>

      #GType of an instantiatable type

    • interfaceType: GType<unknown>

      #GType of an interface type

    Returns TypePlugin

  • instantiatablePrerequisite(interfaceType: GType<unknown>): GType<unknown>
  • 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

    • interfaceType: GType<unknown>

      an interface type

    Returns GType<unknown>

  • Returns the #GTypeInterface structure of an interface to which the passed in class conforms.

    Parameters

    • instanceClass: GObject.TypeClass

      a #GTypeClass structure

    • ifaceType: GType<unknown>

      an interface ID which this class conforms to

    Returns TypeInterface

  • prerequisites(interfaceType: GType<unknown>): GType<unknown>[]
  • Returns the prerequisites of an interfaces type.

    Parameters

    • interfaceType: GType<unknown>

      an interface type

    Returns GType<unknown>[]

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