Class Pattern

java.lang.Object
io.github.jwharm.cairobindings.Proxy
org.freedesktop.cairo.Pattern
Direct Known Subclasses:
Gradient, Mesh, RasterSource, SolidPattern, SurfacePattern

public abstract class Pattern extends Proxy
Sources for drawing.

A Pattern represents a source when drawing onto a surface. There are different subtypes of Pattern, for different types of sources; for example, cairo_pattern_create_rgb() creates a pattern for a solid opaque color.

Other than various cairo_pattern_create_type() functions, some of the pattern types can be implicitly created using various cairo_set_source_type() functions; for example cairo_set_source_rgb().

The type of a pattern can be queried with cairo_pattern_get_type().

Memory management of cairo_pattern_t is done with cairo_pattern_reference() and cairo_pattern_destroy().

Since:
1.0