Package: gobject

Function g-type-class-ref

Lambda List

g-type-class-ref (gtype)

Arguments

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

Return Value

The g-type-class structure for the given gtype.

Details

Increments the reference count of the class structure belonging to gtype and returns the pointer to the class structure. This function will create the class if it does not exist already. Returns nil when gtype is not a valid type ID.

Examples

(g-type-class-ref "GtkLabel") => #.(SB-SYS:INT-SAP #X55D446CF8320)
(g-type-from-class *) => #<GTYPE :name "GtkLabel" :id 94370208288432>    
 

See also

2020-11-14