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

dummy-pane Class

Summary

A pane that can used as a filler for layouts.

Package

capi

Superclasses

simple-pane

Description

Panes of the class dummy-pane are transparent and do nothing except occupying space on the screen. Their size and position is set like all other panes based on the geometry hints (see element), and then the space they occupied is left blank (i.e. showing the pane behind them).

dummy-pane panes are useful as filler where you want to leave some space. For example, the following leaves 15 pixels on the left of the output-pane:

(let ((red-pane (make-instance 'output-pane :background :red))
      (dummy-pane (make-instance 'dummy-pane 
                                 :visible-min-width 15
                                 :visible-max-width t)))
  (contain (make-instance 'row-layout
                          :description (list dummy-pane red-pane))))
Notes

Using nil as an element of the description of a layout creates a dummy-pane without any constraints.

See also

element


CAPI User Guide and Reference Manual (Windows version) - 18 Feb 2025 15:35:34