Region.createRectangles

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

class Region
static
createRectangles
(
cairo_rectangle_int_t[] rects
)

Parameters

rects cairo_rectangle_int_t[]

an array of count rectangles

Return Value

Type: Region

A newly allocated cairo_region_t. Free with cairo_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_status().

Meta