cairo_set_pattern3cairo_set_patternselect a surface as fill pattern
void cairo_set_pattern (cairo_t *cr, cairo_surface_t *pattern)cr :a cairo_tpattern :a surfaceDescriptionfunctionscairo_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.