Package: cairo
Macro cairo:with-matrix
Lambda Listcairo:with-matrix ((var &rest args) &body body) SyntaxArgumentsDetails The cairo:with-matrix macro allocates a new cairo:matrix-t
instance, initializes the matrix with the given values and executes the
body that uses the matrix.
After execution of the body the allocated memory for the matrix is released. When no argument is given the matrix is initialized to the identity transformation with the cairo:matrix-init-identity function. The initialization with one argument initializes a rotation with the cairo:matrix-init-rotate function. The initialization with three arguments initializes a translation with the cairo:matrix-init-translate function or a transformation which scales with the cairo:matrix-init-scale function. When six numbers are given the matrix is initialized with the cairo:matrix-init function. Notes | See also |
2025-1-18