Region.copy

Allocates a new region object copying the area from original. Since 1.10

class Region
copy
()

Return Value

Type: Region

A newly allocated cairo_region_t. Free with 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 Region.status.