Function Macro

GObjectTYPE_CHECK_CLASS_CAST

Declaration [src]

#define G_TYPE_CHECK_CLASS_CAST (
  g_class,
  g_type,
  c_type
)

Description [src]

Checks that g_class is a class structure of the type identified by g_type and issues a warning if this is not the case. Returns g_class casted to a pointer to c_type. NULL is not a valid class structure.

This macro should only be used in type implementations.

Parameters

g_class -
 

Location of a GTypeClass structure.

g_type -
 

The type to be returned.

c_type -
 

The corresponding C type of class structure of g_type.