map-pane-children applies function to layout 's immediate children. This works only after the layout-description of layout has been parsed, which generally happens just before a window is displayed on the screen. The order in which the children are processed is not necessarily the same order that they are placed into layout 's description.
A layout.
A function of one argument, a CAPI pane object.
A function of one argument which restricts applicable panes to those satisfying test. The default is identity
.
Controls whether the applicable panes are restricted to the visible children of layout . The default is nil
.
A function of two arguments, both CAPI panes. The default is geometry-coordinates-<
.
A boolean. A non- nil
value means process the children in the order sorted by sort-function . The default is nil
.
A boolean. A non- nil
value means process the children in reverse order. The default is nil
.
(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 column
#'(lambda (pane)
(format t "~&~S: ~S" pane
(capi:title-pane-text pane))))