is used to define subclasses of
, the superclass of all CAPI interface classes.
It is an extension to
, which provides the functionality of that macro as well as the specification of the panes, layouts, and menus from which an interface is composed. It takes the same arguments as
, and supports the additional options
If you specify
, then on creating your interface the CAPI will create a
and arrange the panes in it in the order they are defined. For real applications you will need some control over how the panes are laid out, and this is supplied via the
Each component of the interface is named in the code, and a slot of that name is added to the class created. When an instance of the class is made, each component is created automatically and placed in its slot.
To access a pane, layout or menu in an instance of your interface class you can define an accessor, like viewer-pane in the example below, or simply use
When defining a component, you can use other components within the definition simply by giving its name. You can refer to the interface itself by the special name
CAPI User Guide (Unix version) - 30 Aug 2011