Surface.reference

Increases the reference count on surface by one. This prevents surface from being destroyed until a matching call to Surface.destroy is made. The number of references to a cairo_surface_t can be get using Surface.getReferenceCount. Since 1.0

class Surface
reference
()

Return Value

Type: Surface

the referenced cairo_surface_t.