Type.classPeekParent

This is a convenience function often needed in class initializers. It returns the class structure of the immediate parent type of the class passed in. Since derived classes hold a reference count on their parent classes as long as they are instantiated, the returned class will always exist. This function is essentially equivalent

class Type
static
void*
classPeekParent
(
void* gClass
)

Parameters

gClass void*

The GTypeClass structure to retrieve the parent class for. [type GObject.TypeClass]

Return Value

Type: void*

The parent class of g_class. [type GObject.TypeClass][transfer none]

Meta