Next Prev Up Top Contents Index

with-transformed-point

Macro
Summary

Binds a point transformed by a given ports transform to two variables across the body of the macro.

Signature
with-transformed-point (new-x
 new-y
 port
 x
 y
) &body body
                       => result
Arguments

new-x

A variable

new-y

A variable

port

A graphics port

x

A real number

y

A real number

body

A body of Lisp code

Values

result

The return value of the last form executed in body

Description

The with-transformed-point macro transforms the point given by ( x y ) using the port 's transform and the resulting values are bound to the new-x and new-y variables. The body of the macro is then evaluated with this binding.


LispWorks CAPI Reference Manual - 14 Dec 2001

Next Prev Up Top Contents Index