Package: gobject

Function g-object-type

Lambda List

g-object-type (object)

Arguments

object -- a g-object instance to return the type ID for

Return Value

A g-type type ID of the object argument.

Details

Gets the type ID for the instance of an object. Returns nil if the object argument is nil.

This function calls the g-type-from-instance function to get the type for an object, but checks in addition for a non-nil argument.

Examples

(g-object-type (make-instance 'gtk-label))
=> #S(GTYPE :NAME "GtkLabel" :%ID 134905144)
(g-obect-type nil) => nil    
 

See also

2021-9-11