API  0.9.10
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 
24 @typedef CPRectEdge
29 
37 CPMakePoint = CGPointMake;
38 
46 CPMakeSize = CGSizeMake;
47 
57 CPMakeRect = CGRectMake;
58 
65 CPPointCreateCopy = CGPointMakeCopy;
66 
75 CPPointEqualToPoint = CGPointEqualToPoint;
76 
84 CPPointInRect = function(aPoint, aRect)
85 {
86  return CGRectContainsPoint(aRect, aPoint)
87 };
88 
96 CPRectEqualToRect = CGRectEqualToRect;
97 
105 CPRectIsEmpty = CGRectIsEmpty;
106 
115 CPRectContainsRect = CGRectContainsRect;
116 
124 CPRectIntersection = CGRectIntersection;
125 
133 CPPointMake = CGPointMake;
134 
142 CPRectInset = CGRectInset;
143 
150 CPRectIntegral = CGRectIntegral;
151 
158 CPRectCreateCopy = CGRectCreateCopy;
159 
169 CPRectMake = CGRectMake;
170 
179 CPRectOffset = CGRectOffset;
180 
186 CPRectStandardize = CGRectStandardize;
187 
195 CPRectUnion = CGRectUnion;
196 
203 CPSizeCreateCopy = CGSizeCreateCopy;
204 
212 CPSizeMake = CGSizeMake;
213 
222 CPRectContainsPoint = CGRectContainsPoint;
223 
229 CPRectGetHeight = CGRectGetHeight;
230 
236 CPRectGetMaxX = CGRectGetMaxX;
237 
243 CPRectGetMaxY = CGRectGetMaxY;
244 
250 CPRectGetMidX = CGRectGetMidX;
251 
257 CPRectGetMidY = CGRectGetMidY;
258 
264 CPRectGetMinX = CGRectGetMinX;
265 
271 CPRectGetMinY = CGRectGetMinY;
272 
278 CPRectGetWidth = CGRectGetWidth;
279 
287 CPRectIntersectsRect = CGRectIntersectsRect;
288 
295 CPRectIsNull = CGRectIsNull;
296 
306 CPDivideRect = CGRectDivide;
307 
315 CPSizeEqualToSize = CGSizeEqualToSize;
316 
323 CPStringFromPoint = CGStringFromPoint;
324 
331 CPStringFromSize = CGStringFromSize;
332 
339 CPStringFromRect = CGStringFromRect;
340 
347 CPPointFromString = CGPointFromString;
348 
355 CPSizeFromString = CGSizeFromString;
356 
363 CPRectFromString = CGRectFromString;
364 
370 CPPointFromEvent = CGPointFromEvent;
371 
377 CPSizeMakeZero = CGSizeMakeZero;
378 
384 CPRectMakeZero = CGRectMakeZero;
385 
391 CPPointMakeZero = CGPointMakeZero;
CPSizeCreateCopy
Definition: CPGeometry.j:203
CPMakeRect
Definition: CPGeometry.j:57
CPRectInset
Definition: CPGeometry.j:142
CPRectEdge CPMinXEdge
Definition: CPGeometry.j:25
CPRectGetWidth
Definition: CPGeometry.j:278
CPRectMakeZero
Definition: CPGeometry.j:384
CPRectContainsPoint
Definition: CPGeometry.j:222
CPPointFromString
Definition: CPGeometry.j:347
CPRectCreateCopy
Definition: CPGeometry.j:158
CPMakePoint
Definition: CPGeometry.j:37
CPMaxYEdge
Definition: CPGeometry.j:28
CPStringFromRect
Definition: CPGeometry.j:339
CPRectGetMidX
Definition: CPGeometry.j:250
CPSizeMakeZero
Definition: CPGeometry.j:377
CPRectEqualToRect
Definition: CPGeometry.j:96
CPRectGetHeight
Definition: CPGeometry.j:229
CPSizeFromString
Definition: CPGeometry.j:355
CPRectGetMidY
Definition: CPGeometry.j:257
CPRectGetMinX
Definition: CPGeometry.j:264
CPRectIsEmpty
Definition: CPGeometry.j:105
CPPointEqualToPoint
Definition: CPGeometry.j:75
CPPointInRect
Definition: CPGeometry.j:84
CPRectIntegral
Definition: CPGeometry.j:150
CPRectUnion
Definition: CPGeometry.j:195
CPRectFromString
Definition: CPGeometry.j:363
CPPointMakeZero
Definition: CPGeometry.j:391
CPMinYEdge
Definition: CPGeometry.j:26
CPPointMake
Definition: CPGeometry.j:133
CPRectContainsRect
Definition: CPGeometry.j:115
CPStringFromSize
Definition: CPGeometry.j:331
CPRectOffset
Definition: CPGeometry.j:179
CPStringFromPoint
Definition: CPGeometry.j:323
CPMaxXEdge
Definition: CPGeometry.j:27
CPRectStandardize
Definition: CPGeometry.j:186
CPRectGetMaxX
Definition: CPGeometry.j:236
CPRectIntersection
Definition: CPGeometry.j:124
CPSizeEqualToSize
Definition: CPGeometry.j:315
CPMakeSize
Definition: CPGeometry.j:46
CPRectMake
Definition: CPGeometry.j:169
CPRectGetMaxY
Definition: CPGeometry.j:243
CPSizeMake
Definition: CPGeometry.j:212
CPPointFromEvent
Definition: CPGeometry.j:370
CPRectGetMinY
Definition: CPGeometry.j:271
CPDivideRect
Definition: CPGeometry.j:306
CPPointCreateCopy
Definition: CPGeometry.j:65
CPRectIntersectsRect
Definition: CPGeometry.j:287
CPRectIsNull
Definition: CPGeometry.j:295