Next Prev Up Top Contents Index

with-geometry

Macro
Summary

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

Syntax

with-geometry pane &body body

Description

The macro with-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 macro with-slots . Its main uses are for defining layouts and for creating new pinboard-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 the capi-layouts package. They have been moved into the CAPI package for simplicity.

See also

element


LispWorks CAPI Reference Manual - 14 Dec 2001

Next Prev Up Top Contents Index