regionCreateRectangles

fncairo.region.Region regionCreateRectangles(cairo.types.RectangleInt rects, int count)

Allocates a new region object containing the union of all given rects.

Parameters

rectsan array of count rectangles
countnumber of rectangles

Returns

A newly allocated #cairo_region_t. Free with

cairo.region.Region.destroy. This function always returns a valid pointer; if memory cannot be allocated, then a special error object is returned where all operations on the object do nothing. You can check for this with cairo.region.Region.status.