Widget.regionIntersect

Computes the intersection of a widget’s area and region, returning the intersection. The result may be empty, use Region.isEmpty to check.

More...
class Widget
regionIntersect

Parameters

region Region

a cairo_region_t, in the same coordinate system as widget->allocation. That is, relative to widget->window for widgets which return FALSE from Widget.getHasWindow; relative to the parent window of widget->window otherwise.

Return Value

Type: Region

A newly allocated region holding the intersection of widget and region.

Detailed Description

Deprecated: Use Widget.getAllocation and Region.intersectRectangle to get the same behavior.