class CObject Methods PtInRect(self, x, y) Return 1 if the point (x, y) is within the objects rectangle, otherwise return 0. In wpy, almost all objects are rectangles.