Surface.reference

Increases the reference count on surface by one. This prevents surface from being destroyed until a matching call to cairo_surface_destroy() is made. The number of references to a cairo_surface_t can be get using cairo_surface_get_reference_count().

class Surface
reference
()

Return Value

Type: Surface

the referenced cairo_surface_t.

Meta