Package: gobject

Function gobject:object-class-find-property

Lambda List

gobject:object-class-find-property (gtype name)

Arguments

gtype -- a g:type-t type ID for an object class type
name -- a string with the name of the property to look up

Return Value

The g:param-spec instance for the property, or nil if the object class does not have a property of that name.

Details

Looks up the g:param-spec instance for a property of an object class type. Signals an error if the gtype type ID is not a "GObject" type.

Examples

Get the g:param-spec instance for the name property of the g:simple-action object.
(setq pspec (g:object-class-find-property "GSimpleAction" "name"))
=> #.(SB-SYS:INT-SAP #X560E17A46220)
(g:param-spec-name pspec) => "name"
(g:param-spec-type pspec) => #<GTYPE :name "GParamString" :id 94618525293072>
(g:param-spec-value-type pspec) => #<GTYPE :name "gchararray" :id 64>    
 

See also

2024-12-14