Calculates the internal constraints of a pane.
A CAPI pane or layout.
The generic function
calculate-constraints calculates the internal constraints for
according to the sizes of its children, and sets these values into
's geometry cache.
When the pane does not scroll in the relevant dimension, all the geometry hints (
:visible-max-height and so on) override the values that are computed by
When the pane does scroll in the relevant dimension,
:internal-min-height override the values that are computed by
:internal-max-height are ignored when scrolling.)
See Width and height hints for a description of internal and external constraints.
The CAPI calls
calculate-constraints for each pane and layout that it displays.
When creating your own layout, you should define a method for
calculate-constraints that sets the values of the following geometry slots based on the constraints of its children.
The minimum width of
The maximum width of
The minimum height of
The maximum height of
The constraints of any CAPI element can be found by calling get-constraints.
CAPI User Guide and Reference Manual (Macintosh version) - 25 Feb 2015