Package: cairo

Function cairo:device-flush

Lambda List

cairo:device-flush (device)

Arguments

device -- a cairo:device-t instance

Details

Finish any pending operations for the device and also restore any temporary modifications Cairo has made to the state of the device. This function must be called before switching from using the device with Cairo to operating on it directly with native APIs. If the device does not support direct access, then this function does nothing.

This function may acquire devices.
 

See also

2025-1-18