1 CAPI Reference Entries

with-geometry

Macro

Summary

Thewith-geometry macro is used for defining layouts and for creating newpinboard-object classes, by binding a set of variables to a pane's geometry.

Syntax

with-geometry pane &body body

Description

The macrowith-geometry binds the following variables across the forms in body to slots in the pane's geometry in much the same way as the Common Lisp macrowith-slots. Its main uses are for defining layouts and for creating newpinboard-object classes.

%x%
The x position of the pane.

%y%
The y position of the pane.

%width%
The width in pixels of the pane.

%height%
The height in pixels of the pane.

%min-width%
The minimum width of the pane.

%min-height%
The minimum height of the pane.

%max-width%
The maximum width of the pane.

%max-height%
The maximum height of the pane.

%object%
The object whose geometry this is.

%child%
The same as%object% (kept for 3.1 compatibility).

%ratio%
Ratio information.

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

element


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

Generated with Harlequin WebMaker