API
1.0.0
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
25
CPMinXEdge
= 0;
26
CPMinYEdge
= 1;
27
CPMaxXEdge
= 2;
28
CPMaxYEdge
= 3;
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
CPSizeCreateCopy
Definition:
CPGeometry.j:203
CPMakeRect
CPMakeRect
Definition:
CPGeometry.j:57
CPRectInset
CPRectInset
Definition:
CPGeometry.j:142
CPMinXEdge
CPRectEdge CPMinXEdge
Definition:
CPGeometry.j:25
CPRectGetWidth
CPRectGetWidth
Definition:
CPGeometry.j:278
CPRectMakeZero
CPRectMakeZero
Definition:
CPGeometry.j:384
CPRectContainsPoint
CPRectContainsPoint
Definition:
CPGeometry.j:222
CPPointFromString
CPPointFromString
Definition:
CPGeometry.j:347
CPRectCreateCopy
CPRectCreateCopy
Definition:
CPGeometry.j:158
CPMakePoint
CPMakePoint
Definition:
CPGeometry.j:37
CPMaxYEdge
CPMaxYEdge
Definition:
CPGeometry.j:28
CPStringFromRect
CPStringFromRect
Definition:
CPGeometry.j:339
CPRectGetMidX
CPRectGetMidX
Definition:
CPGeometry.j:250
CPSizeMakeZero
CPSizeMakeZero
Definition:
CPGeometry.j:377
CPRectEqualToRect
CPRectEqualToRect
Definition:
CPGeometry.j:96
CPRectGetHeight
CPRectGetHeight
Definition:
CPGeometry.j:229
CPSizeFromString
CPSizeFromString
Definition:
CPGeometry.j:355
CPRectGetMidY
CPRectGetMidY
Definition:
CPGeometry.j:257
CPRectGetMinX
CPRectGetMinX
Definition:
CPGeometry.j:264
CPRectIsEmpty
CPRectIsEmpty
Definition:
CPGeometry.j:105
CPPointEqualToPoint
CPPointEqualToPoint
Definition:
CPGeometry.j:75
CPPointInRect
CPPointInRect
Definition:
CPGeometry.j:84
CPRectIntegral
CPRectIntegral
Definition:
CPGeometry.j:150
CPRectUnion
CPRectUnion
Definition:
CPGeometry.j:195
CPRectFromString
CPRectFromString
Definition:
CPGeometry.j:363
CPPointMakeZero
CPPointMakeZero
Definition:
CPGeometry.j:391
CPMinYEdge
CPMinYEdge
Definition:
CPGeometry.j:26
CPPointMake
CPPointMake
Definition:
CPGeometry.j:133
CPRectContainsRect
CPRectContainsRect
Definition:
CPGeometry.j:115
CPStringFromSize
CPStringFromSize
Definition:
CPGeometry.j:331
CPRectOffset
CPRectOffset
Definition:
CPGeometry.j:179
CPStringFromPoint
CPStringFromPoint
Definition:
CPGeometry.j:323
CPMaxXEdge
CPMaxXEdge
Definition:
CPGeometry.j:27
CPRectStandardize
CPRectStandardize
Definition:
CPGeometry.j:186
CPRectGetMaxX
CPRectGetMaxX
Definition:
CPGeometry.j:236
CPRectIntersection
CPRectIntersection
Definition:
CPGeometry.j:124
CPSizeEqualToSize
CPSizeEqualToSize
Definition:
CPGeometry.j:315
CPMakeSize
CPMakeSize
Definition:
CPGeometry.j:46
CPRectMake
CPRectMake
Definition:
CPGeometry.j:169
CPRectGetMaxY
CPRectGetMaxY
Definition:
CPGeometry.j:243
CPSizeMake
CPSizeMake
Definition:
CPGeometry.j:212
CPPointFromEvent
CPPointFromEvent
Definition:
CPGeometry.j:370
CPRectGetMinY
CPRectGetMinY
Definition:
CPGeometry.j:271
CPDivideRect
CPDivideRect
Definition:
CPGeometry.j:306
CPPointCreateCopy
CPPointCreateCopy
Definition:
CPGeometry.j:65
CPRectIntersectsRect
CPRectIntersectsRect
Definition:
CPGeometry.j:287
CPRectIsNull
CPRectIsNull
Definition:
CPGeometry.j:295
Foundation
CPGeometry.j
Generated on Mon Sep 10 2018 12:09:58 for API by
1.8.14