1 CAPI Reference Entries

calculate-constraints

Generic Function

Summary

Thecalculate-constraints generic function calculates the minimum and maximum size of a pane.

Syntax

calculate-constraints pane

Description

This generic function calculates the minimum and maximum size for pane according to the sizes of its children, and sets these values into pane's geometry cache.

When creating your own layout, you should define a method forcalculate-constraints that sets the values of the following geometry slots based on the constraints of its children.

%min-width%
The minimum width of pane.

%max-width%
The maximum width of pane.

%min-height%
The minimum height of pane.

%max-height%
The maximum height of pane.

The constraints of any CAPI element can be found by callingget-constraints.

See Also

calculate-layout
define-layout
get-constraints
element
layout


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

Generated with Harlequin WebMaker