Function

GObject-2.0GObjecttype_class_peek

  • Retrieves the class for a give type.

    This function is essentially the same as g_type_class_get(), except that the class may have not been instantiated yet.

    As a consequence, this function may return null if the class of the type passed in does not currently exist (hasn't been referenced before).

    Parameters

    • type: GType

      type ID of a classed type

    Returns TypeClass

    the GObject.TypeClass structure for the given type ID or null if the class does not currently exist