19 #ifndef __CGGEOMETRY__
20 #define __CGGEOMETRY__
39 #if PRAGMA_STRUCT_ALIGN
40 #pragma options align = mac68k
41 #elif PRAGMA_STRUCT_PACKPUSH
43 #elif PRAGMA_STRUCT_PACK
47 #if PRAGMA_ENUM_ALWAYSINT
48 #if defined(__fourbyteints__) && !__fourbyteints__
49 #define __CGGEOMETRY__RESTORE_TWOBYTEINTS
50 #pragma fourbyteints on
52 #pragma enumsalwaysint on
53 #elif PRAGMA_ENUM_OPTIONS
54 #pragma option enum =int
55 #elif PRAGMA_ENUM_PACK
56 #if __option(pack_enums)
57 #define __CGGEOMETRY__RESTORE_PACKED_ENUMS
58 #pragma options(!pack_enums)
91 typedef enum CGRectEdge CGRectEdge;
456 CG_INLINE
CGPoint __CGPointMake(
float x,
float y)
463 #define CGPointMake __CGPointMake
465 CG_INLINE
CGSize __CGSizeMake(
float width,
float height)
469 size.height = height;
472 #define CGSizeMake __CGSizeMake
474 CG_INLINE
CGRect __CGRectMake(
float x,
float y,
float width,
float height)
479 rect.size.width = width;
480 rect.size.height = height;
483 #define CGRectMake __CGRectMake
486 #if PRAGMA_ENUM_ALWAYSINT
487 #pragma enumsalwaysint reset
488 #ifdef __CGGEOMETRY__RESTORE_TWOBYTEINTS
489 #pragma fourbyteints off
491 #elif PRAGMA_ENUM_OPTIONS
492 #pragma option enum =reset
493 #elif defined(__CGGEOMETRY__RESTORE_PACKED_ENUMS)
494 #pragma options(pack_enums)
497 #if PRAGMA_STRUCT_ALIGN
498 #pragma options align = reset
499 #elif PRAGMA_STRUCT_PACKPUSH
501 #elif PRAGMA_STRUCT_PACK
505 #ifdef PRAGMA_IMPORT_OFF
xxx put contents here xxx
const CGPoint CGPointZero
CGRect CGRectStandardize(CGRect rect)
int CGRectContainsRect(CGRect rect1, CGRect rect2)
int CGRectEqualToRect(CGRect rect1, CGRect rect2)
float CGRectGetWidth(CGRect rect)
void CGRectDivide(CGRect rect, CGRect *slice, CGRect *remainder, float amount, CGRectEdge edge)
CGRect CGRectInset(CGRect rect, float dx, float dy)
int CGRectIntersectsRect(CGRect rect1, CGRect rect2)
CGRect CGRectIntegral(CGRect rect)
float CGRectGetMaxY(CGRect rect)
CGSize CGSizeMake(float width, float height)
int CGPointEqualToPoint(CGPoint point1, CGPoint point2)
CGRect CGRectIntersection(CGRect r1, CGRect r2)
CGRect CGRectMake(float x, float y, float width, float height)
float CGRectGetMidX(CGRect rect)
CGPoint CGPointMake(float x, float y)
int CGSizeEqualToSize(CGSize size1, CGSize size2)
float CGRectGetMinY(CGRect rect)
int CGRectContainsPoint(CGRect rect, CGPoint point)
float CGRectGetMaxX(CGRect rect)
int CGRectIsNull(CGRect rect)
CGRect CGRectOffset(CGRect rect, float dx, float dy)
float CGRectGetMidY(CGRect rect)
int CGRectIsEmpty(CGRect rect)
float CGRectGetHeight(CGRect rect)
float CGRectGetMinX(CGRect rect)
CGRect CGRectUnion(CGRect r1, CGRect r2)
Definition: CGGeometry.h:64
Definition: CGGeometry.h:78
Definition: CGGeometry.h:71