1 CAPI Reference Entries
element
is the superclass of all CAPI objects that appear in a window.
capi-object
simple-pane
pinboard-object
menu
collection
parent
interface
min-width
min-height
max-width
max-height
x
y
element-parent
element-interface
element
contains the slotsparent
andinterface
which contain the element and the interface that the element is contained in respectively. The writer methodelement-parent
can be used to re-parent an element into another parent (or to remove it from a container entirely by setting its parent tonil
).
nil
(meaning no maximum), but any of the following hints can be specified to change these values:
:x
:y
:min-width
:min-height
:max-width
:max-height
:best-width
:best-height
t
max-width
andmax-height
, means use the minimum.
:text-width
:screen-width
:screen-height
max
min
+
-
*
/
apply
orfuncall
an arbitrary function, by passing a list starting withfuncall
orapply
, followed by the function and then the arguments.
(capi:display (make-instance 'capi:interface :title "Test" :min-width 300))(capi:display (make-instance 'capi:interface :title "Test" :min-width 300 :max-height 200))
element-parent
accessor to place elements.
(setq pinboard (capi:contain (make-instance 'capi:pinboard-layout) :min-width 300 :min-height 300))(setq object (make-instance 'capi:image-pinboard-object :x 10 :y 10 :image "new-lispworks-logo" :parent pinboard))
(setf (capi:element-parent object) nil)
(setf (capi:element-parent object) pinboard)
set-hint-table
Generated with Harlequin WebMaker