API  0.9.7
 All Classes Files Functions Variables Macros Groups Pages
CPGeometry.j
Go to the documentation of this file.
1 /*
2  * CPGeometry.j
3  * Foundation
4  *
5  * Created by Francisco Tolmasky.
6  * Copyright 2008, 280 North, Inc.
7  *
8  * This library is free software; you can redistribute it and/or
9  * modify it under the terms of the GNU Lesser General Public
10  * License as published by the Free Software Foundation; either
11  * version 2.1 of the License, or (at your option) any later version.
12  *
13  * This library is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16  * Lesser General Public License for more details.
17  *
18  * You should have received a copy of the GNU Lesser General Public
19  * License along with this library; if not, write to the Free Software
20  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
21  */
22 
23 
28 
36 CPMakePoint = CGPointMake;
37 
45 CPMakeSize = CGSizeMake;
46 
56 CPMakeRect = CGRectMake;
57 
64 CPPointCreateCopy = CGPointMakeCopy;
65 
74 CPPointEqualToPoint = CGPointEqualToPoint;
75 
83 CPPointInRect = function(aPoint, aRect)
84 {
85  return CGRectContainsPoint(aRect, aPoint)
86 };
87 
95 CPRectEqualToRect = CGRectEqualToRect;
96 
104 CPRectIsEmpty = CGRectIsEmpty;
105 
114 CPRectContainsRect = CGRectContainsRect;
115 
123 CPRectIntersection = CGRectIntersection;
124 
132 CPPointMake = CGPointMake;
133 
141 CPRectInset = CGRectInset;
142 
149 CPRectIntegral = CGRectIntegral;
150 
157 CPRectCreateCopy = CGRectCreateCopy;
158 
168 CPRectMake = CGRectMake;
169 
178 CPRectOffset = CGRectOffset;
179 
185 CPRectStandardize = CGRectStandardize;
186 
194 CPRectUnion = CGRectUnion;
195 
202 CPSizeCreateCopy = CGSizeCreateCopy;
203 
211 CPSizeMake = CGSizeMake;
212 
221 CPRectContainsPoint = CGRectContainsPoint;
222 
228 CPRectGetHeight = CGRectGetHeight;
229 
235 CPRectGetMaxX = CGRectGetMaxX;
236 
242 CPRectGetMaxY = CGRectGetMaxY;
243 
249 CPRectGetMidX = CGRectGetMidX;
250 
256 CPRectGetMidY = CGRectGetMidY;
257 
263 CPRectGetMinX = CGRectGetMinX;
264 
270 CPRectGetMinY = CGRectGetMinY;
271 
277 CPRectGetWidth = CGRectGetWidth;
278 
286 CPRectIntersectsRect = CGRectIntersectsRect;
287 
294 CPRectIsNull = CGRectIsNull;
295 
305 CPDivideRect = CGRectDivide;
306 
314 CPSizeEqualToSize = CGSizeEqualToSize;
315 
322 CPStringFromPoint = CGStringFromPoint;
323 
330 CPStringFromSize = CGStringFromSize;
331 
338 CPStringFromRect = CGStringFromRect;
339 
346 CPPointFromString = CGPointFromString;
347 
354 CPSizeFromString = CGSizeFromString;
355 
362 CPRectFromString = CGRectFromString;
363 
369 CPPointFromEvent = CGPointFromEvent;
370 
376 CPSizeMakeZero = CGSizeMakeZero;
377 
383 CPRectMakeZero = CGRectMakeZero;
384 
390 CPPointMakeZero = CGPointMakeZero;