Package: gobject

Function g-type-from-instance

Lambda List

g-type-from-instance (instance)

Arguments

instance -- a valid g-type-instance instance

Return Value

The g-type ID of instance.

Details

Get the type identifier from a given instance. This function should only be used in type implementations.

Note

Signals an error if the instance argument is not a valid g-type-instance instance.

Examples

(g-type-from-instance (make-instance 'gtk-button))
=> #<GTYPE :name "GtkButton" :id 134914152>    
 

See also

*2021-11-18