Package: cairo

Function cairo:script-create

Lambda List

cairo:script-create (path)

Arguments

path -- a path or namestring for the file to write the script to

Return Value

The newly created cairo:device-t instance.

Details

Creates an output device for emitting the script, used when creating the individual surfaces. The caller owns the device and should call the cairo:device-destroy function when done with it. This function always returns a valid pointer, but it will return a pointer to a "nil" device if an error such as out of memory occurs. You can use the cairo:device-status function to check for this.

Notes

Use the cairo:with-script-surface macro to create a Cairo surface for an output device.
 

See also

2025-1-29