and region.
Widget.regionIntersect
cairo.region.Region regionIntersect(cairo.region.Region region)Computes the intersection of a widget’s area and region, returning the intersection. The result may be empty, use [cairo.region.Region.isEmpty] to check.
Parameters
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 [gtk.widget.Widget.getHasWindow]; relative to the parent window of widget->window otherwise. |
Returns
A newly allocated region holding the intersection of widget
Deprecated
Use [gtk.widget.Widget.getAllocation] and
[cairo.region.Region.intersectRectangle] to get the same behavior.