Package: cairo

Function cairo:device-reference

Lambda List

cairo:device-reference (device)

Arguments

device -- a cairo:device-t instance

Return Value

The referenced cairo:device-t instance.

Details

Increases the reference count on device by one. This prevents the device from being destroyed until a matching call to the cairo:device-destroy function is made.

The number of references to a cairo:device-t instance can be get using the cairo:device-reference-count function.
 

See also

2025-1-18