Widget.intersect

bool intersect(gdk.rectangle.Rectangle area, out gdk.rectangle.Rectangle intersection)

Computes the intersection of a widget’s area and area, storing the intersection in intersection, and returns true if there was an intersection. intersection may be null if you’re only interested in whether there was an intersection.

Parameters

areaa rectangle
intersectionrectangle to store intersection of widget and area

Returns

true if there was an intersection