Package: glib

Function glib:gtype-id

Lambda List

glib:gtype-id (instance)

Arguments

instance -- a g:gtype instance

Return Value

The integer for the unique identifier of the GType type.

Details

Returns the unique identifier for the GType type. The function returns 0 for a nil value, representing an invalid GType type.

Examples

(g:gtype-id (g:gtype "gboolean")) => 20
(g:gtype-id (g:gtype "GObject")) => 80
(g:gtype-id (g:gtype "GAction")) => 95376336284736
(g:gtype-id (g:gtype "GSimpleAction")) => 95376336285744
(g:gtype-id nil) => 0    
 

See also

2024-12-8