containsPoint method
Determines whether the specified GPoint is contained within the rectangular region defined by this GRect object.
Implementation
bool containsPoint(GPoint point) {
return point.x >= x && point.y >= y && point.x < right && point.y < bottom;
}