ReactOS  0.4.13-dev-249-gcba1a2f
gdiplusenums.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2007 Google (Evan Stade)
3  *
4  * This library is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU Lesser General Public
6  * License as published by the Free Software Foundation; either
7  * version 2.1 of the License, or (at your option) any later version.
8  *
9  * This library is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12  * Lesser General Public License for more details.
13  *
14  * You should have received a copy of the GNU Lesser General Public
15  * License along with this library; if not, write to the Free Software
16  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
17  */
18 
19 #ifndef _GDIPLUSENUMS_H
20 #define _GDIPLUSENUMS_H
21 
24 
25 enum Unit
26 {
27  UnitWorld = 0,
29  UnitPixel = 2,
30  UnitPoint = 3,
31  UnitInch = 4,
34 };
35 
37 {
43 };
44 
46 {
51 };
52 
54 {
57 };
58 
59 enum LineCap
60 {
61  LineCapFlat = 0x00,
62  LineCapSquare = 0x01,
63  LineCapRound = 0x02,
65 
71 
72  LineCapCustom = 0xff,
74 };
75 
77 {
80 };
81 
83  PathPointTypeStart = 0, /* start of a figure */
87  PathPointTypePathDashMode = 16, /* not used */
89  PathPointTypeCloseSubpath = 128, /* end of a closed figure */
91 };
92 
93 enum PenType
94 {
101 };
102 
104 {
109 };
110 
112 {
117 };
118 
120 {
127 };
128 
130 {
137 };
138 
140 {
150 };
151 
153 {
156 };
157 
159 {
166 };
167 
169 {
173 };
174 
176 {
183 };
184 
186 {
189 };
190 
192 {
196 };
197 
198 enum WarpMode {
201 };
202 
204 {
210 };
211 
213 {
220 };
221 
223 {
228 };
229 
231 {
235 };
236 
238 {
243 };
244 
246 {
249 };
250 
252 {
259 };
260 
262 {
266 };
267 
269 {
274 };
275 
277 {
287 };
288 
290 {
297 };
298 
300 {
307 };
308 
310 {
314 };
315 
317 {
327 };
328 
330 {
343  ImageFlagsReadOnly = 0x00010000,
344  ImageFlagsCaching = 0x00020000
345 };
346 
348 {
355 };
356 
358 {
361 };
362 
364 {
368 };
369 
371 {
375 };
376 
378 {
385 };
386 
388 {
446 };
447 
448 #define GDIP_EMFPLUS_RECORD_BASE 0x00004000
449 #define GDIP_WMF_RECORD_BASE 0x00010000
450 #define GDIP_WMF_RECORD_TO_EMFPLUS(x) ((x)|GDIP_WMF_RECORD_BASE)
451 
718 };
719 
720 #define FlatnessDefault 0.25f
721 
722 #ifndef __cplusplus
723 
724 typedef enum Unit Unit;
725 typedef enum BrushType BrushType;
727 typedef enum FillMode FillMode;
728 typedef enum LineCap LineCap;
731 typedef enum LineJoin LineJoin;
737 typedef enum DashCap DashCap;
738 typedef enum DashStyle DashStyle;
740 typedef enum ImageType ImageType;
741 typedef enum ImageFlags ImageFlags;
742 typedef enum WarpMode WarpMode;
743 typedef enum WrapMode WrapMode;
746 typedef enum EmfType EmfType;
752 typedef enum FontStyle FontStyle;
763 typedef enum PenType PenType;
764 typedef enum HatchStyle HatchStyle;
766 
767 #endif /* end of c typedefs */
768 
769 #undef GDIP_WMF_RECORD_TO_EMFPLUS
770 #define GDIP_WMF_RECORD_TO_EMFPLUS(x) ((EmfPlusRecordType)((x)|GDIP_WMF_RECORD_BASE))
771 
772 #endif
#define META_SETPOLYFILLMODE
Definition: wingdi.h:215
#define META_RESTOREDC
Definition: wingdi.h:248
#define EMR_SETPOLYFILLMODE
Definition: wingdi.h:93
PaletteFlags
#define EMR_SETMAPMODE
Definition: wingdi.h:91
#define EMR_ROUNDRECT
Definition: wingdi.h:118
#define META_SCALEVIEWPORTEXT
Definition: wingdi.h:227
#define EMR_SETARCDIRECTION
Definition: wingdi.h:131
#define EMR_SETMITERLIMIT
Definition: wingdi.h:132
#define EMR_POLYBEZIERTO16
Definition: wingdi.h:161
#define META_CREATEBRUSHINDIRECT
Definition: wingdi.h:276
HatchStyle
Definition: gdiplusenums.h:387
#define EMR_POLYLINE
Definition: wingdi.h:78
LinearGradientMode
Definition: gdiplusenums.h:222
PenAlignment
Definition: gdiplusenums.h:152
#define META_ANIMATEPALETTE
Definition: wingdi.h:262
#define EMR_ARCTO
Definition: wingdi.h:129
#define META_SETROP2
Definition: wingdi.h:213
Unit
Definition: gdiplusenums.h:25
#define EMR_POLYLINE16
Definition: wingdi.h:160
WrapMode
Definition: gdiplusenums.h:203
#define META_SETSTRETCHBLTMODE
Definition: wingdi.h:216
InterpolationMode
Definition: gdiplusenums.h:139
#define META_STRETCHDIB
Definition: wingdi.h:269
#define META_OFFSETWINDOWORG
Definition: wingdi.h:224
#define EMR_STROKEANDFILLPATH
Definition: wingdi.h:137
StringFormatFlags
Definition: gdiplusenums.h:276
WarpMode
Definition: gdiplusenums.h:198
#define META_SETTEXTCHAREXTRA
Definition: wingdi.h:217
#define EMR_EXCLUDECLIPRECT
Definition: wingdi.h:103
#define EMR_STRETCHDIBITS
Definition: wingdi.h:154
#define EMR_LINETO
Definition: wingdi.h:128
#define EMR_WIDENPATH
Definition: wingdi.h:140
#define EMR_STROKEPATH
Definition: wingdi.h:138
#define EMR_POLYLINETO16
Definition: wingdi.h:162
DashCap
Definition: gdiplusenums.h:168
#define META_SETVIEWPORTORG
Definition: wingdi.h:222
#define EMR_ENDPATH
Definition: wingdi.h:134
#define EMR_POLYLINETO
Definition: wingdi.h:80
#define META_FLOODFILL
Definition: wingdi.h:234
#define EMR_SETPALETTEENTRIES
Definition: wingdi.h:124
#define META_SAVEDC
Definition: wingdi.h:239
#define EMR_PAINTRGN
Definition: wingdi.h:147
LineJoin
Definition: gdiplusenums.h:103
#define EMR_MOVETOEX
Definition: wingdi.h:101
#define EMR_CREATEPALETTE
Definition: wingdi.h:123
HotkeyPrefix
Definition: gdiplusenums.h:309
#define EMR_STRETCHBLT
Definition: wingdi.h:150
UINT GraphicsContainer
Definition: gdiplusenums.h:23
MetafileFrameUnit
Definition: gdiplusenums.h:377
#define EMR_ABORTPATH
Definition: wingdi.h:142
#define EMR_SETBRUSHORGEX
Definition: wingdi.h:87
#define META_INVERTREGION
Definition: wingdi.h:251
#define EMR_SETTEXTCOLOR
Definition: wingdi.h:98
#define EMR_EXTCREATEFONTINDIRECTW
Definition: wingdi.h:155
#define META_REALIZEPALETTE
Definition: wingdi.h:261
#define EMR_SETTEXTALIGN
Definition: wingdi.h:96
#define EMR_SELECTPALETTE
Definition: wingdi.h:122
#define EMR_POLYDRAW
Definition: wingdi.h:130
#define META_PATBLT
Definition: wingdi.h:238
#define META_CREATEPALETTE
Definition: wingdi.h:272
#define EMR_SELECTOBJECT
Definition: wingdi.h:111
#define EMR_SETVIEWPORTORGEX
Definition: wingdi.h:86
EmfPlusRecordType
Definition: gdiplusenums.h:452
StringAlignment
Definition: gdiplusenums.h:261
#define META_SETVIEWPORTEXT
Definition: wingdi.h:223
FillMode
Definition: gdiplusenums.h:53
#define EMR_PLGBLT
Definition: wingdi.h:152
#define META_RECTANGLE
Definition: wingdi.h:236
#define EMR_REALIZEPALETTE
Definition: wingdi.h:126
#define META_LINETO
Definition: wingdi.h:228
#define EMR_SETSTRETCHBLTMODE
Definition: wingdi.h:95
CombineMode
Definition: gdiplusenums.h:347
ImageFlags
Definition: gdiplusenums.h:329
PixelOffsetMode
Definition: gdiplusenums.h:158
#define META_PAINTREGION
Definition: wingdi.h:252
#define META_CREATEREGION
Definition: wingdi.h:277
#define META_SETBKMODE
Definition: wingdi.h:211
#define META_CREATEPATTERNBRUSH
Definition: wingdi.h:273
#define EMR_EOF
Definition: wingdi.h:88
#define META_SETMAPPERFLAGS
Definition: wingdi.h:257
enum PaletteFlags PaletteFlags
Definition: gdiplusenums.h:756
#define EMR_INTERSECTCLIPRECT
Definition: wingdi.h:104
#define META_OFFSETCLIPRGN
Definition: wingdi.h:241
#define EMR_RESTOREDC
Definition: wingdi.h:108
#define META_FRAMEREGION
Definition: wingdi.h:250
#define META_SETTEXTCOLOR
Definition: wingdi.h:218
#define META_OFFSETVIEWPORTORG
Definition: wingdi.h:226
#define EMR_EXTCREATEPEN
Definition: wingdi.h:168
#define META_SETPIXEL
Definition: wingdi.h:240
#define META_SETPALENTRIES
Definition: wingdi.h:263
#define META_MOVETO
Definition: wingdi.h:229
CompositingQuality
Definition: gdiplusenums.h:129
#define EMR_POLYPOLYLINE
Definition: wingdi.h:81
#define EMR_EXTTEXTOUTW
Definition: wingdi.h:157
#define META_BITBLT
Definition: wingdi.h:243
#define EMR_SETMAPPERFLAGS
Definition: wingdi.h:90
#define EMR_FRAMERGN
Definition: wingdi.h:145
#define EMR_SETMETARGN
Definition: wingdi.h:102
#define META_DIBBITBLT
Definition: wingdi.h:266
PathPointType
Definition: gdiplusenums.h:82
#define META_DIBSTRETCHBLT
Definition: wingdi.h:267
#define EMR_INVERTRGN
Definition: wingdi.h:146
#define META_SETWINDOWORG
Definition: wingdi.h:220
#define EMR_RECTANGLE
Definition: wingdi.h:117
MatrixOrder
Definition: gdiplusenums.h:185
FontStyle
Definition: gdiplusenums.h:299
#define EMR_GDICOMMENT
Definition: wingdi.h:143
#define EMR_MODIFYWORLDTRANSFORM
Definition: wingdi.h:110
#define META_DIBCREATEPATTERNBRUSH
Definition: wingdi.h:268
ImageCodecFlags
Definition: gdiplusenums.h:316
#define EMR_CREATEDIBPATTERNBRUSHPT
Definition: wingdi.h:167
#define META_POLYGON
Definition: wingdi.h:245
#define EMR_SETROP2
Definition: wingdi.h:94
#define META_EXCLUDECLIPRECT
Definition: wingdi.h:230
#define META_ESCAPE
Definition: wingdi.h:247
#define EMR_SETPIXELV
Definition: wingdi.h:89
#define META_SELECTPALETTE
Definition: wingdi.h:260
StringTrimming
Definition: gdiplusenums.h:289
#define EMR_BITBLT
Definition: wingdi.h:149
#define EMR_ELLIPSE
Definition: wingdi.h:116
LineCap
Definition: gdiplusenums.h:59
#define META_STRETCHBLT
Definition: wingdi.h:244
CompositingMode
Definition: gdiplusenums.h:245
#define EMR_SCALEWINDOWEXTEX
Definition: wingdi.h:106
GpTestControlEnum
Definition: gdiplusenums.h:370
#define EMR_FILLRGN
Definition: wingdi.h:144
#define EMR_CREATEBRUSHINDIRECT
Definition: wingdi.h:113
#define EMR_SELECTCLIPPATH
Definition: wingdi.h:141
#define META_POLYLINE
Definition: wingdi.h:246
#define META_SCALEWINDOWEXT
Definition: wingdi.h:225
#define META_EXTTEXTOUT
Definition: wingdi.h:258
#define EMR_POLYGON
Definition: wingdi.h:77
#define EMR_POLYBEZIER16
Definition: wingdi.h:158
#define META_SETDIBTODEV
Definition: wingdi.h:259
#define META_FILLREGION
Definition: wingdi.h:249
#define EMR_PIE
Definition: wingdi.h:121
#define META_TEXTOUT
Definition: wingdi.h:242
#define EMR_DELETEOBJECT
Definition: wingdi.h:114
#define EMR_CREATEPEN
Definition: wingdi.h:112
#define EMR_FILLPATH
Definition: wingdi.h:136
#define EMR_CHORD
Definition: wingdi.h:120
#define META_POLYPOLYGON
Definition: wingdi.h:264
#define META_SETTEXTJUSTIFICATION
Definition: wingdi.h:219
#define EMR_HEADER
Definition: wingdi.h:75
SmoothingMode
Definition: gdiplusenums.h:119
#define META_SETRELABS
Definition: wingdi.h:214
TextRenderingHint
Definition: gdiplusenums.h:251
#define META_PIE
Definition: wingdi.h:235
UINT GraphicsState
Definition: gdiplusenums.h:22
PenType
Definition: gdiplusenums.h:93
#define EMR_POLYBEZIER
Definition: wingdi.h:76
#define EMR_SCALEVIEWPORTEXTEX
Definition: wingdi.h:105
#define EMR_SETWINDOWEXTEX
Definition: wingdi.h:83
#define EMR_SETBKMODE
Definition: wingdi.h:92
#define META_SETTEXTALIGN
Definition: wingdi.h:255
#define EMR_ANGLEARC
Definition: wingdi.h:115
#define EMR_EXTFLOODFILL
Definition: wingdi.h:127
#define META_DELETEOBJECT
Definition: wingdi.h:271
#define EMR_ARC
Definition: wingdi.h:119
#define EMR_CLOSEFIGURE
Definition: wingdi.h:135
#define META_EXTFLOODFILL
Definition: wingdi.h:270
#define META_ROUNDRECT
Definition: wingdi.h:237
#define META_SETMAPMODE
Definition: wingdi.h:212
#define EMR_EXTTEXTOUTA
Definition: wingdi.h:156
#define EMR_SETCOLORADJUSTMENT
Definition: wingdi.h:97
#define META_SELECTOBJECT
Definition: wingdi.h:254
DashStyle
Definition: gdiplusenums.h:175
#define EMR_POLYTEXTOUTA
Definition: wingdi.h:169
#define EMR_POLYTEXTOUTW
Definition: wingdi.h:170
#define EMR_POLYPOLYGON16
Definition: wingdi.h:164
#define EMR_FLATTENPATH
Definition: wingdi.h:139
#define META_CREATEPENINDIRECT
Definition: wingdi.h:274
#define META_CREATEFONTINDIRECT
Definition: wingdi.h:275
#define META_ARC
Definition: wingdi.h:232
#define META_ELLIPSE
Definition: wingdi.h:233
StringDigitSubstitute
Definition: gdiplusenums.h:268
unsigned int UINT
Definition: ndis.h:50
EmfType
Definition: gdiplusenums.h:230
FlushIntention
Definition: gdiplusenums.h:357
#define META_SELECTCLIPREGION
Definition: wingdi.h:253
ImageType
Definition: gdiplusenums.h:191
#define EMR_POLYPOLYGON
Definition: wingdi.h:82
#define META_SETBKCOLOR
Definition: wingdi.h:210
#define EMR_SETBKCOLOR
Definition: wingdi.h:99
#define EMR_BEGINPATH
Definition: wingdi.h:133
#define EMR_SETWORLDTRANSFORM
Definition: wingdi.h:109
#define EMR_MASKBLT
Definition: wingdi.h:151
#define EMR_SETVIEWPORTEXTEX
Definition: wingdi.h:85
#define GDIP_WMF_RECORD_TO_EMFPLUS(x)
Definition: gdiplusenums.h:770
CustomLineCapType
Definition: gdiplusenums.h:76
CoordinateSpace
Definition: gdiplusenums.h:363
#define EMR_POLYGON16
Definition: wingdi.h:159
#define EMR_POLYDRAW16
Definition: wingdi.h:165
#define EMR_POLYPOLYLINE16
Definition: wingdi.h:163
#define EMR_SETWINDOWORGEX
Definition: wingdi.h:84
BrushType
Definition: gdiplusenums.h:36
#define META_INTERSECTCLIPRECT
Definition: wingdi.h:231
#define GDIP_EMFPLUS_RECORD_BASE
Definition: gdiplusenums.h:448
#define META_CHORD
Definition: wingdi.h:256
EmfToWmfBitsFlags
Definition: gdiplusenums.h:237
DriverStringOptions
Definition: gdiplusenums.h:45
#define META_RESIZEPALETTE
Definition: wingdi.h:265
#define META_SETWINDOWEXT
Definition: wingdi.h:221
#define EMR_RESIZEPALETTE
Definition: wingdi.h:125
#define EMR_EXTSELECTCLIPRGN
Definition: wingdi.h:148
#define EMR_SAVEDC
Definition: wingdi.h:107
QualityMode
Definition: gdiplusenums.h:111
#define EMR_CREATEMONOBRUSH
Definition: wingdi.h:166
MetafileType
Definition: gdiplusenums.h:212
#define EMR_POLYBEZIERTO
Definition: wingdi.h:79
#define EMR_OFFSETCLIPRGN
Definition: wingdi.h:100