Name
cregion:ContainsRectangle -- check if rectangle is in region
Synopsis
overlap = cregion:ContainsRectangle(rectangle)
Function
Checks whether rectangle is inside, outside or partially contained in the region. The rectangle parameter must be a table that has the fields x, y, width, and height initialized.

This function returns #CAIRO_REGION_OVERLAP_IN if rectangle is entirely inside the region, #CAIRO_REGION_OVERLAP_OUT if rectangle is entirely outside the region, or #CAIRO_REGION_OVERLAP_PART if rectangle is partially inside and partially outside the region.

Inputs
rectangle
a table describing a rectangle (see above)
Results
overlap
an overlap constant (see above)

Show TOC