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

NextPrevUpTopContentsIndex

with-transformed-rect

Macro
Summary

Transforms the coordinates of a rectangle and binds them to variables while executing a body of code.

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

The macro with-transformed-rect transforms the coordinates of a rectangle and binds them to four variables for the duration of the macro's body.

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


CAPI User Guide and Reference Manual (Unix version) - 25 Feb 2015

NextPrevUpTopContentsIndex