Defines new classes of layout.
capi
define-layout name superclasses slots &rest options
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. |
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. |
interpret-description
calculate-constraints
calculate-layout
layout
CAPI User Guide and Reference Manual (Macintosh version) - 01 Dec 2021 19:31:27