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

with-inverse-graphics Macro

Summary

Executes all drawing function calls to a given port within the body of the macro with foreground and background colors swapped.

Package

graphics-ports

Signature

with-inverse-graphics (port) &body body => result

Arguments
port
A graphics port.
body
A body of Lisp code.
Values
result
The return value of the last form executed in body.
Description

The macro with-inverse-graphics evaluates the forms in body as an implicit progn with the foreground and background slots of the graphics-state of port swapped.


CAPI User Guide and Reference Manual (Macintosh version) - 01 Dec 2021 19:31:44