Package: gobject

Function g-type-depth

Lambda List

g-type-depth (gtype)

Arguments

gtype -- a g-type ID

Return Value

An unsigned integer with the depth of gtype.

Details

Returns the length of the ancestry of the passed in GType. This includes the GType itself, so that e.g. a fundamental type has depth 1.

Examples

(g-type-depth "gdouble") => 1
(g-type-depth "GtkButton") => 6    
 

See also

2020-11-14