Package: gobject

Function gobject:type-depth

Lambda List

gobject:type-depth (gtype)

Arguments

gtype -- a g:type-t type ID

Return Value

The unsigned integer for the depth of gtype.

Details

Returns the length of the ancestry of the passed in gtype. This includes gtype itself, so that, for example, a fundamental type has depth 1.

Examples

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

See also

2025-09-27