Returns the external constraints for an element.

capi

get-constraints `element` => `min-width`, `min-height`, `max-width`, `max-height`

element⇩ |
An instance of simple-pane (or one of its subclasses), or an instance of pinboard-object (or one of its subclasses). |

min-width, min-height |
Integers specifying the minimum external dimensions of element. |

max-width, max-height |
Integers specifying the maximum external dimensions of element. |

The function `get-constraints`

returns the external constraints for `element` as multiple values.

The values are the minimum width, the minimum height, the maximum width and the maximum height of the element including borders. A containing layout will use these values when laying out its children.

`get-constraints`

calls the generic function calculate-constraints to calculate these sizes initially, but then just uses the values in the geometry cache for the element. To force an element to take account of its new constraints, call the function invalidate-pane-constraints.

calculate-constraints

define-layout

element

invalidate-pane-constraints

6 Laying Out CAPI Panes

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