The function capi-object-property
gets and sets properties in the property list of a capi-object
.
All CAPI objects contain a property list, similar to the symbol plist
. The recommended ways of accessing properties are capi-object-property
and (setf capi-object-property)
. To remove a property, use the function remove-capi-object-property.
In this example a list panel is created, and a test property is set and examined using capi-object-property
.
(setq pane (make-instance 'capi:list-panel
:items '(1 2 3)))
(capi:capi-object-property pane 'test-property)
(setf (capi:capi-object-property pane 'test-property)
"Test")
(capi:capi-object-property pane 'test-property)
(capi:remove-capi-object-property pane 'test-property)
(capi:capi-object-property pane 'test-property)
CAPI User Guide and Reference Manual (Unix version) - 25 Feb 2015