Next: , Previous: g-type-fundamental, Up: Type hierarchy and type relations


3.4 g-type-depth

— Function: g-type-depth
     (g-type-depth type) => depth
type
A GType designator
depth
An integer

Returns the depth of the type. Depth is the number of types between the type and its fundamental types (including both type and its fundamental type). Depth of a fundamental type equals to 1.

Example:

     (g-type-depth "GObject") => 1
     (g-type-depth "GInitiallyUnowned") => 2