1 CAPI Reference Entries

map-pane-children

Generic Function

Summary

Themap-pane-children generic function binds a variable to each of the children of a layout.

Syntax

map-pane-children (variable layout) &body body

Description

This macro helps you to map over all of layout's children, by binding variable to each of the children across the body of code body. Note that this only works after layout's description has been parsed, which generally happens just before a window is displayed on the screen, and the order in which the children are mapped is not necessarily the order that they are placed into the pane's description.

Example

(setq column (capi:contain
               (make-instance
                'capi:column-layout
                :children (list
                            (make-instance
                             'capi:title-pane
                             :text "Title 1")
                            (make-instance
                             'capi:title-pane
                             :text "Title 2")
                            (make-instance
                             'capi:title-pane
                             :text "A third title")
                           ))))

(capi:map-pane-children (pane column) (format t "~&~S: ~S" pane (capi:title-pane-text pane)))

See Also

layout


CAPI Reference Manual, Liquid Common Lisp Version 5.0 - 3 OCT 1997

Generated with Harlequin WebMaker