A #cairo_pattern_t represents a source when drawing onto a
surface. There are different subtypes of #cairo_pattern_t,
for different types of sources; for example,
cairo.global.patternCreateRgb creates a pattern for a solid
opaque color.
Other than various
<function>cairo_pattern_create_<emphasis>type</emphasis>()</function>
functions, some of the pattern types can be implicitly created using various
<function>cairo_set_source_<emphasis>type</emphasis>()</function> functions;
for example cairo.context.Context.setSourceRgb.
A #cairo_pattern_t represents a source when drawing onto a surface. There are different subtypes of #cairo_pattern_t, for different types of sources; for example, cairo.global.patternCreateRgb creates a pattern for a solid opaque color.
Other than various <function>cairo_pattern_create_<emphasis>type</emphasis>()</function> functions, some of the pattern types can be implicitly created using various <function>cairo_set_source_<emphasis>type</emphasis>()</function> functions; for example cairo.context.Context.setSourceRgb.
The type of a pattern can be queried with cairo.pattern.Pattern.getPatternType.
Memory management of #cairo_pattern_t is done with cairo.pattern.Pattern.reference and cairo.pattern.Pattern.destroy.