Package: gobject

Function g-type-next-base

Lambda List

g-type-next-base (leaf-type root-type)

Arguments

leaf-type -- descendant of root-type and the type to be returned
root-type -- immediate parent of the returned type

Return Value

Immediate g-type child ID of root-type and anchestor of leaf-type.

Details

Given a leaf-type and a root-type which is contained in its anchestry, return the type that root-type is the immediate parent of. In other words, this function determines the type that is derived directly from root-type which is also a base class of leaf-type. Given a root type and a leaf type, this function can be used to determine the types and order in which the leaf type is descended from the root type.

Examples

(g-type-next-base "GtkButton" "GtkContainer")
=> #<GTYPE :name "GtkBin" :id 94872974765408>
(g-type-next-base "GtkButton" "GtkWidget")
=> #<GTYPE :name "GtkContainer" :id 94872974765040>    
 

See also

2020-11-13