Package: cairo

Function cairo-pattern-reference

Lambda List

cairo-pattern-reference (pattern)

Arguments

pattern -- a cairo-pattern-t instance

Return Value

The referenced cairo-pattern-t instance.

Details

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

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

See also

2020-12-13