Function Macro

AtkDEFINE_TYPE_WITH_CODE

Declaration [src]

#define ATK_DEFINE_TYPE_WITH_CODE (
  TN,
  t_n,
  T_P,
  _C_
)

Description [src]

A convenience macro for ATK type implementations. Similar to ATK_DEFINE_TYPE(), but allows you to insert custom code into the _get_type() function, e.g. interface implementations via G_IMPLEMENT_INTERFACE().

Available since:1.22

Parameters

TN -
 

The name of the new type, in Camel case.

t_n -
 

The name of the new type in lowercase, with words separated by ‘_’.

T_P -
 

The GType of the parent type.

_C_ -
 

Custom code that gets inserted in the _get_type() function.