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

define-layout Macro

Summary

Defines new classes of layout.

Package

capi

Signature

define-layout name superclasses slots &rest options

Arguments
name
A symbol.
superclasses
A list of symbols naming classes.
slots
A list of slot specifiers as in defclass.
options
Class options as in defclass.
Description

The macro define-layout is used to create new classes of layout. The macro is essentially the same as defclass except that its default superclass is layout. See defclass for a description of name, superclasses, slots and options.

To implement a new class of layout, methods need to be provided for the following generic functions:

Translate the layout's child descriptions.

Calculate the constraints for the layout.

Layout the children of the layout.

See also

interpret-description
calculate-constraints
calculate-layout
layout


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