Package: cairo
Function cairo:surface-finish
Lambda Listcairo:surface-finish (surface) ArgumentsDetails
This function finishes the surface and drops all references to external
resources.
For example, for the Xlib backend it means that Cairo will no longer access the drawable, which can be freed. After calling the cairo:surface-finish
function the only valid operations on a surface are getting and setting user,
referencing and destroying, and flushing and finishing it. Further drawing to
the surface will not affect the surface but will instead trigger a :surface-finished error. When the last call to the cairo:surface-destroy function decreases the reference count to zero, Cairo will call the cairo:surface-finish function if it has not been called already, before freeing the resources associated with the surface. | See also |
#2025-1-18