ReactOS  0.4.15-dev-994-ga9f6032
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 {
84  PathPointTypeStart = 0, /* start of a figure */
88  PathPointTypePathDashMode = 16, /* not used */
90  PathPointTypeCloseSubpath = 128, /* end of a closed figure */
92 };
93 
94 enum PenType
95 {
102 };
103 
105 {
110 };
111 
113 {
118 };
119 
121 {
128 };
129 
131 {
138 };
139 
141 {
151 };
152 
154 {
157 };
158 
160 {
167 };
168 
170 {
174 };
175 
177 {
184 };
185 
187 {
190 };
191 
193 {
197 };
198 
200 {
203 };
204 
206 {
212 };
213 
215 {
222 };
223 
225 {
230 };
231 
233 {
237 };
238 
240 {
245 };
246 
248 {
251 };
252 
254 {
261 };
262 
264 {
268 };
269 
271 {
276 };
277 
279 {
289 };
290 
292 {
299 };
300 
302 {
309 };
310 
312 {
316 };
317 
319 {
329 };
330 
332 {
345  ImageFlagsReadOnly = 0x00010000,
346  ImageFlagsCaching = 0x00020000
347 };
348 
350 {
357 };
358 
360 {
363 };
364 
366 {
370 };
371 
373 {
377 };
378 
380 {
387 };
388 
390 {
448 };
449 
450 #define GDIP_EMFPLUS_RECORD_BASE 0x00004000
451 #define GDIP_WMF_RECORD_BASE 0x00010000
452 #define GDIP_WMF_RECORD_TO_EMFPLUS(x) ((x) | GDIP_WMF_RECORD_BASE)
453 
455 {
721 };
722 
723 #define FlatnessDefault 0.25f
724 
725 #ifndef __cplusplus
726 
727 typedef enum Unit Unit;
728 typedef enum BrushType BrushType;
730 typedef enum FillMode FillMode;
731 typedef enum LineCap LineCap;
734 typedef enum LineJoin LineJoin;
740 typedef enum DashCap DashCap;
741 typedef enum DashStyle DashStyle;
743 typedef enum ImageType ImageType;
744 typedef enum ImageFlags ImageFlags;
745 typedef enum WarpMode WarpMode;
746 typedef enum WrapMode WrapMode;
749 typedef enum EmfType EmfType;
755 typedef enum FontStyle FontStyle;
766 typedef enum PenType PenType;
767 typedef enum HatchStyle HatchStyle;
769 
770 #endif /* end of c typedefs */
771 
772 #undef GDIP_WMF_RECORD_TO_EMFPLUS
773 #define GDIP_WMF_RECORD_TO_EMFPLUS(x) ((EmfPlusRecordType)((x) | GDIP_WMF_RECORD_BASE))
774 
775 #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:389
#define EMR_POLYLINE
Definition: wingdi.h:78
LinearGradientMode
Definition: gdiplusenums.h:224
PenAlignment
Definition: gdiplusenums.h:153
#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:205
#define META_SETSTRETCHBLTMODE
Definition: wingdi.h:216
InterpolationMode
Definition: gdiplusenums.h:140
#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:278
WarpMode
Definition: gdiplusenums.h:199
#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:169
#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:104
#define EMR_MOVETOEX
Definition: wingdi.h:101
#define EMR_CREATEPALETTE
Definition: wingdi.h:123
HotkeyPrefix
Definition: gdiplusenums.h:311
#define EMR_STRETCHBLT
Definition: wingdi.h:150
UINT GraphicsContainer
Definition: gdiplusenums.h:23
MetafileFrameUnit
Definition: gdiplusenums.h:379
#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:454
StringAlignment
Definition: gdiplusenums.h:263
#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:349
ImageFlags
Definition: gdiplusenums.h:331
PixelOffsetMode
Definition: gdiplusenums.h:159
#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:759
#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:130
#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:186
FontStyle
Definition: gdiplusenums.h:301
#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:318
#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:291
#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:247
#define EMR_SCALEWINDOWEXTEX
Definition: wingdi.h:106
GpTestControlEnum
Definition: gdiplusenums.h:372
#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:120
#define META_SETRELABS
Definition: wingdi.h:214
TextRenderingHint
Definition: gdiplusenums.h:253
#define META_PIE
Definition: wingdi.h:235
UINT GraphicsState
Definition: gdiplusenums.h:22
PenType
Definition: gdiplusenums.h:94
#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:176
#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:270
unsigned int UINT
Definition: ndis.h:50
EmfType
Definition: gdiplusenums.h:232
FlushIntention
Definition: gdiplusenums.h:359
#define META_SELECTCLIPREGION
Definition: wingdi.h:253
ImageType
Definition: gdiplusenums.h:192
#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:773
CustomLineCapType
Definition: gdiplusenums.h:76
CoordinateSpace
Definition: gdiplusenums.h:365
#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:450
#define META_CHORD
Definition: wingdi.h:256
EmfToWmfBitsFlags
Definition: gdiplusenums.h:239
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:112
#define EMR_CREATEMONOBRUSH
Definition: wingdi.h:166
MetafileType
Definition: gdiplusenums.h:214
#define EMR_POLYBEZIERTO
Definition: wingdi.h:79
#define EMR_OFFSETCLIPRGN
Definition: wingdi.h:100