All Manuals > CAPI User Guide and Reference Manual > 22 GRAPHICS-PORTS Reference Entries

rect-bind Macro

Summary

Binds four variables to the elements of a rectangle across a body of code.

Package

graphics-ports

Signature

rect-bind ((x y width height) rectangle) &body body => result

Arguments
A variable.
A variable.
width
A variable.
height
A variable.
rectangle
A rectangle.
body
A body of Lisp code.
Values
result
The return value of the last form in body.
Description

The macro rect-bind binds x, y, width and height to the appropriate values from rectangle and evaluates the forms in body as an implicit progn. rectangle is a list of the form (left top right bottom).


CAPI User Guide and Reference Manual (Windows version) - 01 Dec 2021 19:34:15