reshuffling of dlls
[reactos.git] / reactos / gdiplus / include / gdiplusprivate.h
1 /*
2 * COPYRIGHT: See COPYING in the top level directory
3 * PROJECT: ReactOS gdiplus.dll
4 * FILE: include/GdiPlusPrivate.h
5 * PURPOSE: GDI+ private definitions
6 */
7 #ifndef __GDIPLUSPRIVATE_H
8 #define __GDIPLUSPRIVATE_H
9
10 #include <gdiplusenums.h>
11 #include <gdipluspixelformats.h>
12
13 typedef float REAL;
14 typedef ARGB Color;
15 #include <gdipluscolormatrix.h>
16
17 #define WINGDIPAPI __stdcall
18 #define GDIPCONST const
19
20 typedef BOOL (CALLBACK * ImageAbort)(VOID *);
21 typedef ImageAbort DrawImageAbort;
22 typedef ImageAbort GetThumbnailImageAbort;
23 typedef BOOL (CALLBACK * EnumerateMetafileProc)(EmfPlusRecordType,
24 UINT,
25 UINT,
26 const BYTE*,
27 VOID*);
28
29 typedef enum {
30 Ok = 0,
31 GenericError = 1,
32 InvalidParameter = 2,
33 OutOfMemory = 3,
34 ObjectBusy = 4,
35 InsufficientBuffer = 5,
36 NotImplemented = 6,
37 Win32Error = 7,
38 WrongState = 8,
39 Aborted = 9,
40 FileNotFound = 10,
41 ValueOverflow = 11,
42 AccessDenied = 12,
43 UnknownImageFormat = 13,
44 FontFamilyNotFound = 14,
45 FontStyleNotFound = 15,
46 NotTrueTypeFont = 16,
47 UnsupportedGdiplusVersion = 17,
48 GdiplusNotInitialized = 18,
49 PropertyNotFound = 19,
50 PropertyNotSupported = 20,
51 ProfileNotFound = 21
52 } GpStatus;
53
54 typedef GpStatus Status;
55
56 typedef struct
57 {
58 } GpAdjustableArrowCap;
59
60 typedef struct
61 {
62 } GpBitmap;
63
64 typedef struct
65 {
66 } GpGraphics;
67
68 typedef struct
69 {
70 } BitmapData;
71
72 typedef struct
73 {
74 } CGpEffect;
75
76 typedef struct
77 {
78 } GpCachedBitmap;
79
80 typedef struct
81 {
82 } IDirectDrawSurface7;
83
84 typedef struct
85 {
86 } GpBrush;
87
88 typedef BrushType GpBrushType;
89
90 typedef HatchStyle GpHatchStyle;
91
92 typedef struct
93 {
94 } GpHatch;
95
96 typedef struct
97 {
98 } GpPath;
99
100 typedef struct
101 {
102 } GpRegion;
103
104 typedef struct
105 {
106 CLSID Clsid;
107 GUID FormatID;
108 WCHAR *CodecName;
109 WCHAR *DllName;
110 WCHAR *FormatDescription;
111 WCHAR *FilenameExtension;
112 WCHAR *MimeType;
113 DWORD Flags;
114 DWORD Version;
115 DWORD SigCount;
116 DWORD SigSize;
117 BYTE *SigPattern;
118 BYTE *SigMask;
119 } ImageCodecInfo;
120
121 typedef Unit GpUnit;
122
123 typedef struct
124 {
125 } GpPen;
126
127 typedef struct
128 {
129 REAL X;
130 REAL Y;
131 } GpPointF;
132
133 typedef struct
134 {
135 INT X;
136 INT Y;
137 } GpPoint;
138
139 typedef FillMode GpFillMode;
140
141 typedef struct
142 {
143 } GpSolidFill;
144
145 typedef struct
146 {
147 } GpFont;
148
149 typedef struct
150 {
151 } GpFontFamily;
152
153 typedef struct
154 {
155 } GpFontCollection;
156
157 typedef FlushIntention GpFlushIntention;
158
159 typedef struct
160 {
161 } GpImage;
162
163 typedef struct
164 {
165 } GpImageAttributes;
166
167 typedef struct
168 {
169 } GpMatrix;
170
171 typedef struct
172 {
173 GUID Guid;
174 ULONG NumberOfValues;
175 ULONG Type;
176 VOID *Value;
177 } EncoderParameter;
178
179 typedef struct
180 {
181 UINT Count;
182 EncoderParameter Parameter[1];
183 } EncoderParameters;
184
185 typedef struct
186 {
187 PROPID id;
188 ULONG length;
189 WORD type;
190 VOID *value;
191 } PropertyItem;
192
193 typedef struct
194 {
195 UINT Size;
196 UINT Position;
197 VOID *Desc;
198 UINT DescSize;
199 UINT *Data;
200 UINT DataSize;
201 UINT Cookie;
202 } ImageItemData;
203
204 typedef enum {
205 ColorChannelFlagsC = 0,
206 ColorChannelFlagsM = 1,
207 ColorChannelFlagsY = 2,
208 ColorChannelFlagsK = 3,
209 ColorChannelFlagsLast = 4
210 } ColorChannelFlags;
211
212 typedef LineCap GpLineCap;
213
214 typedef struct
215 {
216 } GpCustomLineCap;
217
218 typedef LineJoin GpLineJoin;
219
220 typedef WrapMode GpWrapMode;
221
222 typedef struct
223 {
224 } GpLineGradient;
225
226 typedef MatrixOrder GpMatrixOrder;
227
228 typedef struct
229 {
230 } GpMetafile;
231
232 typedef struct
233 {
234 REAL X;
235 REAL Y;
236 } PointF;
237
238 typedef struct
239 {
240 INT X;
241 INT Y;
242 } Point;
243
244 typedef struct
245 {
246 REAL X;
247 REAL Y;
248 REAL Width;
249 REAL Height;
250 } RectF;
251
252 typedef RectF GpRectF;
253
254 typedef struct
255 {
256 INT X;
257 INT Y;
258 INT Width;
259 INT Height;
260 } Rect;
261
262 typedef Rect GpRect;
263
264 typedef struct
265 {
266 } MetafileHeader;
267
268 typedef struct {
269 INT16 Left;
270 INT16 Top;
271 INT16 Right;
272 INT16 Bottom;
273 } PWMFRect16;
274
275 typedef struct {
276 UINT32 Key;
277 INT16 Hmf;
278 PWMFRect16 BoundingBox;
279 INT16 Inch;
280 UINT32 Reserved;
281 INT16 Checksum;
282 } WmfPlaceableFileHeader;
283
284 typedef struct
285 {
286 } GpPathData;
287
288 typedef struct
289 {
290 } GpStringFormat;
291
292 typedef struct
293 {
294 } GpPathGradient;
295
296 typedef struct
297 {
298 } GpPathIterator;
299
300 typedef DashCap GpDashCap;
301
302 typedef PenAlignment GpPenAlignment;
303
304 typedef PenType GpPenType;
305
306 typedef DashStyle GpDashStyle;
307
308 typedef struct
309 {
310 } CharacterRange;
311
312 typedef struct
313 {
314 } GpTexture;
315
316 typedef CoordinateSpace GpCoordinateSpace;
317
318 typedef enum {
319 DebugEventLevelFatal,
320 DebugEventLevelWarning
321 } DebugEventLevel;
322
323 typedef VOID (WINAPI *DebugEventProc)(DebugEventLevel level,
324 CHAR *message);
325
326 typedef struct
327 {
328 UINT32 GdiplusVersion;
329 DebugEventProc DebugEventCallback;
330 BOOL SuppressBackgroundThread;
331 BOOL SuppressExternalCodecs;
332 } GdiplusStartupInput;
333
334 typedef Status (WINAPI *NotificationHookProc)(OUT ULONG_PTR *token);
335 typedef VOID (WINAPI *NotificationUnhookProc)(ULONG_PTR token);
336
337 typedef struct {
338 NotificationHookProc NotificationHook;
339 NotificationUnhookProc NotificationUnhook;
340 } GdiplusStartupOutput;
341
342 #endif /* __GDIPLUSPRIVATE_H */