Method Cairo.Device()->finish()


Method finish

void finish()

Description

This function finishes the device and drops all references to external resources. All surfaces, fonts and other objects created for this device will be finished, too. Further operations on the device will not affect the device but will instead trigger a STATUS_DEVICE_FINISHED error.

When the reference count of a Device drops to zero, cairo will call finish() if it hasn't been called already, before freeing the resources associated with the device.

This function may acquire devices.