1 CAPI Reference Entries

calculate-layout

Generic Function

Summary

Thecalculate-layout generic function is used to provide a method for laying out the children of a new layout.

Syntax

calculate-layout layout x y width height

Description

The generic functioncalculate-layout is called by the CAPI to layout the children of a layout. When defining a new class of layout usingdefine-layout, acalculate-layout method must be provided that sets the x, y, width and height of each of the layout's children. This method must try to obey the constraints specified by its children (its minimum and maximum size) and should only break them when it becomes impossible to fit the constraints of all of the children.

To set the x, y, width and height of the layout, use the macrowith-geometry which works in a similar way aswith-slots.

Compatibility Note

In LispWorks 3.1, this macro and all of its variable names were in thecapi-layouts package. They have been moved into theCAPI package for simplicity.

See Also

get-constraints
with-geometry
interpret-description


CAPI Reference Manual, Liquid Common Lisp Version 5.0 - 3 OCT 1997

Generated with Harlequin WebMaker