Implement CPPointInRect.

This improves source code compatibility with Cocoa when replacing NS with CP.
This commit is contained in:
Alexander Ljungberg committed 2012-10-24 15:35:42 +01:00
1 parent c3c61e1889
commit 797bfeec98
1 file changed
+12
+12
View File
@@ -74,6 +74,18 @@ CPPointCreateCopy = CGPointMakeCopy;
*/
CPPointEqualToPoint = CGPointEqualToPoint;
/*!
Tests whether the CGPoint is contained by the CGRect.
@group CGPoint
@param aPoint the CGPoint to check
@param aRect the CGRect to check
@return BOOL \c YES if the rect contains the point.
*/
CPPointInRect = function(aPoint, aRect)
{
return CGRectContainsPoint(aRect, aPoint)
};
/*!
Test whether the two CGRects have the same origin and size
@group CGRect