Package: gobject

Function gobject:type-ensure

Lambda List

gobject:type-ensure (gtype)

Arguments

gtype -- a g:type-t type ID

Return Value

The gtype type ID, or nil.

Details

Ensures that the indicated gtype has been registered with the type system, and its initializer method has been run. If the gtype argument is a string and gtype is not already registered, the type initializer is called. On success, the gtype type ID is returned, otherwise nil.
 

See also

2024-8-12