Package: gobject

Function gobject:type-class-peek

Lambda List

gobject:type-class-peek (gtype)

Arguments

gtype -- a g:type-t type ID of a classed type

Return Value

The g:type-class instance for the given gtype type ID or nil if the class does not currently exist.

Details

This function is essentially the same as the g:type-class-ref function, except that the classes reference count is not incremented. As a consequence, this function may return nil if the class of the type passed in does not currently exist (has not been referenced before).

Examples

(g:type-class-peek "GSimpleAction") => #.(SB-SYS:INT-SAP #X55FA5306FE40)
(g:type-from-class *) => #<GTYPE :name "GSimpleAction" :id 94533623145984>
(g:type-class-peek "GAction") => NIL
(g:type-class-peek "gdouble") => NIL
(g:type-class-peek "unknown") => NIL    
 

See also

2024-12-8