Gtk.Widget.prototype.intersect
function intersect(area:Gdk.Rectangle, intersection:Gdk.Rectangle):Boolean { // Gjs wrapper for gtk_widget_intersect() }
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.
- area
a rectangle
- intersection
rectangle to store intersection of widget and area
- Returns
true if there was an intersection