Interface TypeInfo.OnClassFinalizeFunc

Enclosing class:
TypeInfo
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public static interface TypeInfo.OnClassFinalizeFunc
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    onClassFinalizeFunc(CallbackHandler __self, Pointer g_class, Pointer class_data)
    A callback function used by the type system to finalize a class.
  • Method Details

    • onClassFinalizeFunc

      void onClassFinalizeFunc(CallbackHandler __self, @Nonnull Pointer g_class, @Nullable Pointer class_data)
      A callback function used by the type system to finalize a class.

      This function is rarely needed, as dynamically allocated class resources
      should be handled by GBaseInitFunc() and GBaseFinalizeFunc().

      Also, specification of a GClassFinalizeFunc() in the #GTypeInfo
      structure of a static type is invalid, because classes of static types
      will never be finalized (they are artificially kept alive when their
      reference count drops to zero).
      Parameters:
      g_class - The #GTypeClass structure to finalize
      class_data - The @class_data member supplied via the #GTypeInfo structure