Region.containsRectangle

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

class Region
cairo_region_overlap_t
containsRectangle
(
ref cairo_rectangle_int_t rectangle
)

Parameters

rectangle cairo_rectangle_int_t

a cairo_rectangle_int_t

Return Value

Type: cairo_region_overlap_t

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.

Meta