Function Macro

GObjectPRIVATE_OFFSET

Declaration [src]

#define G_PRIVATE_OFFSET (
  TypeName,
  field
)

Description [src]

Evaluates to the offset of the field inside the instance private data structure for TypeName.

Note that this macro can only be used together with the G_DEFINE_TYPE_* and G_ADD_PRIVATE() macros, since it depends on variable names from those macros.

Available since:2.38

Parameters

TypeName -
 

The name of the type in CamelCase.

field -
 

The name of the field in the private data structure.