Cappuccino
1.0.0
All
Classes
Files
Functions
Variables
Typedefs
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
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;
Foundation
CPGeometry.j
Generated on Fri Sep 7 2018 11:26:15 for Cappuccino by
1.8.3