Region.containsRectangle

Checks whether rectangle is inside, outside or partially contained in region Since 1.10

class Region
containsRectangle

Parameters

rectangle cairo_rectangle_int_t

a cairo_rectangle_int_t

Return Value

CAIRO_REGION_OVERLAP_IN if rectangle is entirely inside region, CAIRO_REGION_OVERLAP_OUT if rectangle is entirely outside region, or CAIRO_REGION_OVERLAP_PART if rectangle is partially inside and partially outside region.