Schnittstelle TypeInfo.OnBaseInitFunc

Umschließende Klasse:
TypeInfo
Funktionsschnittstelle:
Dies ist eine funktionale Schnittstelle, die somit als Zuweisungsziel für einen Lambdaausdruck oder eine Methodenreferenz verwendet werden kann.

@FunctionalInterface public static interface TypeInfo.OnBaseInitFunc
  • Methodenübersicht

    Modifizierer und Typ
    Methode
    Beschreibung
    void
    A callback function used by the type system to do base initialization
    of the class structures of derived types.
  • Methodendetails

    • onBaseInitFunc

      void onBaseInitFunc(CallbackHandler __self, @Nonnull Pointer g_class)
      A callback function used by the type system to do base initialization
      of the class structures of derived types.

      This function is called as part of the initialization process of all derived
      classes and should reallocate or reset all dynamic class members copied over
      from the parent class.

      For example, class members (such as strings) that are not sufficiently
      handled by a plain memory copy of the parent class into the derived class
      have to be altered. See GClassInitFunc() for a discussion of the class
      initialization process.
      Parameter:
      g_class - The #GTypeClass structure to initialize