NextPrevUpTopContentsIndex

with-transformed-rect

Macro
Summary

Transforms the coordinates of a rectangle and binds them to four variables for the duration of the macro's body.

Package

graphics-ports

Signature

with-transformed-rect ( nx1 ny1 nx2 ny2 port x1 y1 x2 y2 )
&body body => result

Arguments

nx1

A variable.

ny1

A variable.

nx2

A variable.

ny2

A variable.

port

A graphics port.

x1

A real number.

y1

A real number.

x2

A real number.

y2

A real number.

body

A body of Lisp code.

Values

result

The return value of the last form executed in body .

Description

During the evaluation of the with-transformed-rect macro body , the two points ( x1, y1 ) and ( x2, y2 ) are transformed by the port's current transform and the resulting values bound to the variables named by the nx1 ny1 nx2 ny2 args.


LispWorks CAPI Reference Manual - 25 Jul 2006

NextPrevUpTopContentsIndex