Package: gobject

Function gobject:type-default-interface-ref

Lambda List

gobject:type-default-interface-ref (gtype)

Arguments

gtype -- a g:type-t interface type ID

Return Value

The pointer to the default vtable for the interface of type gtype, or nil if gtype is not an interface type.

Details

Increments the reference count for the interface type, and returns the default interface vtable for the type. Call the g:type-default-interface-unref function when you are done using the interface.

If the interface type is not currently in use, then the default vtable for the type will be created and initalized by calling the base interface init and default vtable init functions for the type. Calling this function is useful when you want to make sure that signals and properties for an interface have been installed.

Examples

(g:type-default-interface-ref "GAction") => #.(SB-SYS:INT-SAP #X55D446D53DE0)
(g:type-from-interface *) => #<GTYPE :name "GAction" :id 94370208235568>
(g:type-default-interface-ref "GSimpleAction") => NIL
(g:type-default-interface-ref "gdouble") => NIL
(g:type-default-interface-ref "unknown") => NIL    
 

See also

2024-12-8