All Manuals > CAPI User Guide and Reference Manual > 21 CAPI Reference Entries

simple-pinboard-layout Class

Summary

A subclass of pinboard-layout that can contain just one pinboard object or pane as its child, and it adopts the size constraints of that child.

Package

capi

Superclasses

pinboard-layout
simple-layout

Subclasses

graph-pane

Initargs
:child
The child of the pinboard layout.
Description

The class simple-pinboard-layout is normally used to place pinboard objects in a layout by placing the layout inside a simple-pinboard-layout, thus displaying the pinboard objects. It inherits all of its layout behavior from simple-layout.

Examples
(setq column 
      (make-instance
       'capi:column-layout
       :description
       (list
        (make-instance
         'capi:image-pinboard-object
         :image 
         (example-file "capi/graphics/Setup.bmp"))
        (make-instance
         'capi:item-pinboard-object
         :text "LispWorks"))
       :x-adjust :center))
(capi:contain (make-instance
               'capi:simple-pinboard-layout
               :child column))
See also

pinboard-object


CAPI User Guide and Reference Manual (Macintosh version) - 01 Dec 2021 19:31:27