Package: cairo

Function cairo:surface-reference

Lambda List

cairo:surface-reference (surface)

Arguments

surface -- a cairo:surface-t instance

Return Value

The referenced cairo:surface-t instance.

Details

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

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

See also

2025-1-18