Package: cairo
Macro cairo:with-context-for-surface
Lambda Listcairo:with-context-for-surface ((context &rest args) &body body) SyntaxArgumentsDetails The cairo:with-context-for-surface macro allocates a new cairo:context-t instance for a surface, initializes the
Cairo context with the given values and executes the body that uses the
Cairo context.
After execution of the body the allocated memory for the Cairo context is
released. The context is created with the cairo:create function and destroyed with the cairo:destroy function. The context uses a surface that is created with one of the cairo:surface-create-similar, cairo:surface-create-similar-image, or cairo:surface-create-for-rectangle functions. You can access the cairo:surface-t instance for the created context with the cairo:target function. See also the cairo:with-surface macro. | See also |
2025-1-18