Use Point, Rect and Size member functions instead of global functions