Pattern.reference

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

class Pattern
reference
()

Return Value

Type: Pattern

the referenced cairo_pattern_t.