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

with-transformed-point Macro

Summary

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

Package

graphics-ports

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.
A real number.
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-point transforms the point given by (x y) using port's transform and new-x and new-y are bound to the transformed point. The forms in body are then evaluated as an implicit progn with this binding.


CAPI User Guide and Reference Manual (Unix version) - 01 Dec 2021 19:33:02