Mac OS 9
CGPattern.h
Go to the documentation of this file.
1 
19 #ifndef __CGPATTERN__
20 #define __CGPATTERN__
21 
22 #ifndef __CGBASE__
23 #include <CGBase.h>
24 #endif
25 
26 #ifndef __CGCONTEXT__
27 #include <CGContext.h>
28 #endif
29 
43 #if PRAGMA_ONCE
44 #pragma once
45 #endif
46 
47 #ifdef __cplusplus
48 extern "C"
49 {
50 #endif
51 
52 #if PRAGMA_IMPORT
53 #pragma import on
54 #endif
55 
56 #if PRAGMA_STRUCT_ALIGN
57 #pragma options align = mac68k
58 #elif PRAGMA_STRUCT_PACKPUSH
59 #pragma pack(push, 2)
60 #elif PRAGMA_STRUCT_PACK
61 #pragma pack(2)
62 #endif
63 
64 #if PRAGMA_ENUM_ALWAYSINT
65 #if defined(__fourbyteints__) && !__fourbyteints__
66 #define __CGPATTERN__RESTORE_TWOBYTEINTS
67 #pragma fourbyteints on
68 #endif
69 #pragma enumsalwaysint on
70 #elif PRAGMA_ENUM_OPTIONS
71 #pragma option enum =int
72 #elif PRAGMA_ENUM_PACK
73 #if __option(pack_enums)
74 #define __CGPATTERN__RESTORE_PACKED_ENUMS
75 #pragma options(!pack_enums)
76 #endif
77 #endif
78 
80  {
81  kCGPatternTilingNoDistortion = 0,
82  kCGPatternTilingConstantSpacingMinimalDistortion = 1,
83  kCGPatternTilingConstantSpacing = 2
84  };
85  typedef enum CGPatternTiling CGPatternTiling;
86 
98  typedef CALLBACK_API_C(void, CGDrawPatternProcPtr)(void *info, CGContextRef c);
99  typedef CALLBACK_API_C(void, CGReleaseInfoProcPtr)(void *info);
101  {
102  unsigned int version;
103  CGDrawPatternProcPtr drawPattern;
104  CGReleaseInfoProcPtr releaseInfo;
105  };
106  typedef struct CGPatternCallbacks CGPatternCallbacks;
116  CGPatternRef
117  CGPatternCreate(void *info, CGRect bounds, CGAffineTransform matrix,
118  float xStep, float yStep, CGPatternTiling tiling, int isColored,
119  const CGPatternCallbacks *callbacks);
120 
131  CGPatternRef
132  CGPatternRetain(CGPatternRef pattern);
133 
144  void
145  CGPatternRelease(CGPatternRef pattern);
146 
147 #if PRAGMA_ENUM_ALWAYSINT
148 #pragma enumsalwaysint reset
149 #ifdef __CGPATTERN__RESTORE_TWOBYTEINTS
150 #pragma fourbyteints off
151 #endif
152 #elif PRAGMA_ENUM_OPTIONS
153 #pragma option enum =reset
154 #elif defined(__CGPATTERN__RESTORE_PACKED_ENUMS)
155 #pragma options(pack_enums)
156 #endif
157 
158 #if PRAGMA_STRUCT_ALIGN
159 #pragma options align = reset
160 #elif PRAGMA_STRUCT_PACKPUSH
161 #pragma pack(pop)
162 #elif PRAGMA_STRUCT_PACK
163 #pragma pack()
164 #endif
165 
166 #ifdef PRAGMA_IMPORT_OFF
167 #pragma import off
168 #elif PRAGMA_IMPORT
169 #pragma import reset
170 #endif
171 
172 #ifdef __cplusplus
173 }
174 #endif
175 
176 #endif
xxx put contents here xxx
CoreGraphics context.
CGPatternTiling
Definition: CGPattern.h:80
void CGPatternRelease(CGPatternRef pattern)
CGPatternRef CGPatternCreate(void *info, CGRect bounds, CGAffineTransform matrix, float xStep, float yStep, CGPatternTiling tiling, int isColored, const CGPatternCallbacks *callbacks)
typedef CALLBACK_API_C(void, CGDrawPatternProcPtr)(void *info
CGPatternRef CGPatternRetain(CGPatternRef pattern)
Definition: CGAffineTransform.h:52
Definition: CGPattern.h:101
Definition: CGGeometry.h:78