Package: gobject

Function gobject:type-check-instance-type

Lambda List

gobject:type-check-instance-type (instance gtype)

Arguments

instance -- a g:type-instance instance
gtype -- a g:type-t type ID to be checked

Return Value

True on success.

Details

Checks if instance is an instance of the type identified by gtype or derived. This function should only be used in type implementations.

Examples

(g:type-check-instance-type (make-instance 'g:simple-action) "GObject")
=> T
(g:type-check-instance-type (make-instance 'g:simple-action) "gboolean")
=> NIL
(g:type-check-instance-type (make-instance 'g:simple-action) "GAction")
=> T    
 

See also

2024-12-8