cairo_set_pattern 3 cairo_set_pattern select a surface as fill pattern void cairo_set_pattern (cairo_t *cr, cairo_surface_t *pattern) cr : a cairo_t pattern : a surface Description functions cairo_set_pattern This function selects pattern as pattern for fill operations. If the repeat flag is set via cairo_surface_set_repeat, the pattern will be tiled, otherwise just drawn once.