region_intersect


Description:

[ Version ( deprecated = true , deprecated_since = "3.14" ) ]
public Region region_intersect (Region region)

Warning: region_intersect is deprecated since 3.14.

Computes the intersection of a this’s area and region, returning the intersection.

Note:

Use get_allocation and intersect_rectangle to get the same behavior.

The result may be empty, use is_empty to check.

Parameters:

this

a Widget

region

a Region, in the same coordinate system as this- >allocation. That is, relative to this->window for widgets which return false from get_has_window; relative to the parent window of this->window otherwise.

Returns:

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