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 | /*
|
---|
20 | * Oracle LGPL Disclaimer: For the avoidance of doubt, except that if any license choice
|
---|
21 | * other than GPL or LGPL is available it will apply instead, Oracle elects to use only
|
---|
22 | * the Lesser General Public License version 2.1 (LGPLv2) at this time for any software where
|
---|
23 | * a choice of LGPL license versions is made available with the language indicating
|
---|
24 | * that LGPLv2 or any later version may be used, or where a choice of which version
|
---|
25 | * of the LGPL is applied is otherwise unspecified.
|
---|
26 | */
|
---|
27 |
|
---|
28 | #ifndef _GDIPLUSENUMS_H
|
---|
29 | #define _GDIPLUSENUMS_H
|
---|
30 |
|
---|
31 | typedef UINT GraphicsState;
|
---|
32 | typedef UINT GraphicsContainer;
|
---|
33 |
|
---|
34 | enum Unit
|
---|
35 | {
|
---|
36 | UnitWorld = 0,
|
---|
37 | UnitDisplay = 1,
|
---|
38 | UnitPixel = 2,
|
---|
39 | UnitPoint = 3,
|
---|
40 | UnitInch = 4,
|
---|
41 | UnitDocument = 5,
|
---|
42 | UnitMillimeter = 6
|
---|
43 | };
|
---|
44 |
|
---|
45 | enum BrushType
|
---|
46 | {
|
---|
47 | BrushTypeSolidColor = 0,
|
---|
48 | BrushTypeHatchFill = 1,
|
---|
49 | BrushTypeTextureFill = 2,
|
---|
50 | BrushTypePathGradient = 3,
|
---|
51 | BrushTypeLinearGradient = 4
|
---|
52 | };
|
---|
53 |
|
---|
54 | enum FillMode
|
---|
55 | {
|
---|
56 | FillModeAlternate = 0,
|
---|
57 | FillModeWinding = 1
|
---|
58 | };
|
---|
59 |
|
---|
60 | enum LineCap
|
---|
61 | {
|
---|
62 | LineCapFlat = 0x00,
|
---|
63 | LineCapSquare = 0x01,
|
---|
64 | LineCapRound = 0x02,
|
---|
65 | LineCapTriangle = 0x03,
|
---|
66 |
|
---|
67 | LineCapNoAnchor = 0x10,
|
---|
68 | LineCapSquareAnchor = 0x11,
|
---|
69 | LineCapRoundAnchor = 0x12,
|
---|
70 | LineCapDiamondAnchor = 0x13,
|
---|
71 | LineCapArrowAnchor = 0x14,
|
---|
72 |
|
---|
73 | LineCapCustom = 0xff,
|
---|
74 | LineCapAnchorMask = 0xf0
|
---|
75 | };
|
---|
76 |
|
---|
77 | enum PathPointType{
|
---|
78 | PathPointTypeStart = 0, /* start of a figure */
|
---|
79 | PathPointTypeLine = 1,
|
---|
80 | PathPointTypeBezier = 3,
|
---|
81 | PathPointTypePathTypeMask = 7,
|
---|
82 | PathPointTypePathDashMode = 16, /* not used */
|
---|
83 | PathPointTypePathMarker = 32,
|
---|
84 | PathPointTypeCloseSubpath = 128, /* end of a closed figure */
|
---|
85 | PathPointTypeBezier3 = 3
|
---|
86 | };
|
---|
87 |
|
---|
88 | enum PenType
|
---|
89 | {
|
---|
90 | PenTypeSolidColor = BrushTypeSolidColor,
|
---|
91 | PenTypeHatchFill = BrushTypeHatchFill,
|
---|
92 | PenTypeTextureFill = BrushTypeTextureFill,
|
---|
93 | PenTypePathGradient = BrushTypePathGradient,
|
---|
94 | PenTypeLinearGradient = BrushTypeLinearGradient,
|
---|
95 | PenTypeUnknown = -1
|
---|
96 | };
|
---|
97 |
|
---|
98 | enum LineJoin
|
---|
99 | {
|
---|
100 | LineJoinMiter = 0,
|
---|
101 | LineJoinBevel = 1,
|
---|
102 | LineJoinRound = 2,
|
---|
103 | LineJoinMiterClipped = 3
|
---|
104 | };
|
---|
105 |
|
---|
106 | enum QualityMode
|
---|
107 | {
|
---|
108 | QualityModeInvalid = -1,
|
---|
109 | QualityModeDefault = 0,
|
---|
110 | QualityModeLow = 1,
|
---|
111 | QualityModeHigh = 2
|
---|
112 | };
|
---|
113 |
|
---|
114 | enum SmoothingMode
|
---|
115 | {
|
---|
116 | SmoothingModeInvalid = QualityModeInvalid,
|
---|
117 | SmoothingModeDefault = QualityModeDefault,
|
---|
118 | SmoothingModeHighSpeed = QualityModeLow,
|
---|
119 | SmoothingModeHighQuality = QualityModeHigh,
|
---|
120 | SmoothingModeNone,
|
---|
121 | SmoothingModeAntiAlias
|
---|
122 | };
|
---|
123 |
|
---|
124 | enum CompositingQuality
|
---|
125 | {
|
---|
126 | CompositingQualityInvalid = QualityModeInvalid,
|
---|
127 | CompositingQualityDefault = QualityModeDefault,
|
---|
128 | CompositingQualityHighSpeed = QualityModeLow,
|
---|
129 | CompositingQualityHighQuality = QualityModeHigh,
|
---|
130 | CompositingQualityGammaCorrected,
|
---|
131 | CompositingQualityAssumeLinear
|
---|
132 | };
|
---|
133 |
|
---|
134 | enum InterpolationMode
|
---|
135 | {
|
---|
136 | InterpolationModeInvalid = QualityModeInvalid,
|
---|
137 | InterpolationModeDefault = QualityModeDefault,
|
---|
138 | InterpolationModeLowQuality = QualityModeLow,
|
---|
139 | InterpolationModeHighQuality = QualityModeHigh,
|
---|
140 | InterpolationModeBilinear,
|
---|
141 | InterpolationModeBicubic,
|
---|
142 | InterpolationModeNearestNeighbor,
|
---|
143 | InterpolationModeHighQualityBilinear,
|
---|
144 | InterpolationModeHighQualityBicubic
|
---|
145 | };
|
---|
146 |
|
---|
147 | enum PenAlignment
|
---|
148 | {
|
---|
149 | PenAlignmentCenter = 0,
|
---|
150 | PenAlignmentInset = 1
|
---|
151 | };
|
---|
152 |
|
---|
153 | enum PixelOffsetMode
|
---|
154 | {
|
---|
155 | PixelOffsetModeInvalid = QualityModeInvalid,
|
---|
156 | PixelOffsetModeDefault = QualityModeDefault,
|
---|
157 | PixelOffsetModeHighSpeed = QualityModeLow,
|
---|
158 | PixelOffsetModeHighQuality = QualityModeHigh,
|
---|
159 | PixelOffsetModeNone,
|
---|
160 | PixelOffsetModeHalf
|
---|
161 | };
|
---|
162 |
|
---|
163 | enum DashCap
|
---|
164 | {
|
---|
165 | DashCapFlat = 0,
|
---|
166 | DashCapRound = 2,
|
---|
167 | DashCapTriangle = 3
|
---|
168 | };
|
---|
169 |
|
---|
170 | enum DashStyle
|
---|
171 | {
|
---|
172 | DashStyleSolid,
|
---|
173 | DashStyleDash,
|
---|
174 | DashStyleDot,
|
---|
175 | DashStyleDashDot,
|
---|
176 | DashStyleDashDotDot,
|
---|
177 | DashStyleCustom
|
---|
178 | };
|
---|
179 |
|
---|
180 | enum MatrixOrder
|
---|
181 | {
|
---|
182 | MatrixOrderPrepend = 0,
|
---|
183 | MatrixOrderAppend = 1
|
---|
184 | };
|
---|
185 |
|
---|
186 | enum ImageType
|
---|
187 | {
|
---|
188 | ImageTypeUnknown,
|
---|
189 | ImageTypeBitmap,
|
---|
190 | ImageTypeMetafile
|
---|
191 | };
|
---|
192 |
|
---|
193 | enum WarpMode {
|
---|
194 | WarpModePerspective,
|
---|
195 | WarpModeBilinear
|
---|
196 | };
|
---|
197 |
|
---|
198 | enum WrapMode
|
---|
199 | {
|
---|
200 | WrapModeTile,
|
---|
201 | WrapModeTileFlipX,
|
---|
202 | WrapModeTileFlipY,
|
---|
203 | WrapModeTileFlipXY,
|
---|
204 | WrapModeClamp
|
---|
205 | };
|
---|
206 |
|
---|
207 | enum MetafileType
|
---|
208 | {
|
---|
209 | MetafileTypeInvalid,
|
---|
210 | MetafileTypeWmf,
|
---|
211 | MetafileTypeWmfPlaceable,
|
---|
212 | MetafileTypeEmf,
|
---|
213 | MetafileTypeEmfPlusOnly,
|
---|
214 | MetafileTypeEmfPlusDual
|
---|
215 | };
|
---|
216 |
|
---|
217 | enum LinearGradientMode
|
---|
218 | {
|
---|
219 | LinearGradientModeHorizontal,
|
---|
220 | LinearGradientModeVertical,
|
---|
221 | LinearGradientModeForwardDiagonal,
|
---|
222 | LinearGradientModeBackwardDiagonal
|
---|
223 | };
|
---|
224 |
|
---|
225 | enum EmfType
|
---|
226 | {
|
---|
227 | EmfTypeEmfOnly = MetafileTypeEmf,
|
---|
228 | EmfTypeEmfPlusOnly = MetafileTypeEmfPlusOnly,
|
---|
229 | EmfTypeEmfPlusDual = MetafileTypeEmfPlusDual
|
---|
230 | };
|
---|
231 |
|
---|
232 | enum CompositingMode
|
---|
233 | {
|
---|
234 | CompositingModeSourceOver,
|
---|
235 | CompositingModeSourceCopy
|
---|
236 | };
|
---|
237 |
|
---|
238 | enum TextRenderingHint
|
---|
239 | {
|
---|
240 | TextRenderingHintSystemDefault = 0,
|
---|
241 | TextRenderingHintSingleBitPerPixelGridFit,
|
---|
242 | TextRenderingHintSingleBitPerPixel,
|
---|
243 | TextRenderingHintAntiAliasGridFit,
|
---|
244 | TextRenderingHintAntiAlias,
|
---|
245 | TextRenderingHintClearTypeGridFit
|
---|
246 | };
|
---|
247 |
|
---|
248 | enum StringAlignment
|
---|
249 | {
|
---|
250 | StringAlignmentNear = 0,
|
---|
251 | StringAlignmentCenter = 1,
|
---|
252 | StringAlignmentFar = 2
|
---|
253 | };
|
---|
254 |
|
---|
255 | enum StringDigitSubstitute
|
---|
256 | {
|
---|
257 | StringDigitSubstituteUser = 0,
|
---|
258 | StringDigitSubstituteNone = 1,
|
---|
259 | StringDigitSubstituteNational = 2,
|
---|
260 | StringDigitSubstituteTraditional = 3
|
---|
261 | };
|
---|
262 |
|
---|
263 | enum StringFormatFlags
|
---|
264 | {
|
---|
265 | StringFormatFlagsDirectionRightToLeft = 0x00000001,
|
---|
266 | StringFormatFlagsDirectionVertical = 0x00000002,
|
---|
267 | StringFormatFlagsNoFitBlackBox = 0x00000004,
|
---|
268 | StringFormatFlagsDisplayFormatControl = 0x00000020,
|
---|
269 | StringFormatFlagsNoFontFallback = 0x00000400,
|
---|
270 | StringFormatFlagsMeasureTrailingSpaces = 0x00000800,
|
---|
271 | StringFormatFlagsNoWrap = 0x00001000,
|
---|
272 | StringFormatFlagsLineLimit = 0x00002000,
|
---|
273 | StringFormatFlagsNoClip = 0x00004000
|
---|
274 | };
|
---|
275 |
|
---|
276 | enum StringTrimming
|
---|
277 | {
|
---|
278 | StringTrimmingNone = 0,
|
---|
279 | StringTrimmingCharacter = 1,
|
---|
280 | StringTrimmingWord = 2,
|
---|
281 | StringTrimmingEllipsisCharacter = 3,
|
---|
282 | StringTrimmingEllipsisWord = 4,
|
---|
283 | StringTrimmingEllipsisPath = 5
|
---|
284 | };
|
---|
285 |
|
---|
286 | enum FontStyle
|
---|
287 | {
|
---|
288 | FontStyleRegular = 0,
|
---|
289 | FontStyleBold = 1,
|
---|
290 | FontStyleItalic = 2,
|
---|
291 | FontStyleBoldItalic = 3,
|
---|
292 | FontStyleUnderline = 4,
|
---|
293 | FontStyleStrikeout = 8
|
---|
294 | };
|
---|
295 |
|
---|
296 | enum HotkeyPrefix
|
---|
297 | {
|
---|
298 | HotkeyPrefixNone = 0,
|
---|
299 | HotkeyPrefixShow = 1,
|
---|
300 | HotkeyPrefixHide = 2
|
---|
301 | };
|
---|
302 |
|
---|
303 | enum PaletteFlags
|
---|
304 | {
|
---|
305 | PaletteFlagsHasAlpha = 1,
|
---|
306 | PaletteFlagsGrayScale = 2,
|
---|
307 | PaletteFlagsHalftone = 4
|
---|
308 | };
|
---|
309 |
|
---|
310 | enum ImageCodecFlags
|
---|
311 | {
|
---|
312 | ImageCodecFlagsEncoder = 1,
|
---|
313 | ImageCodecFlagsDecoder = 2,
|
---|
314 | ImageCodecFlagsSupportBitmap = 4,
|
---|
315 | ImageCodecFlagsSupportVector = 8,
|
---|
316 | ImageCodecFlagsSeekableEncode = 16,
|
---|
317 | ImageCodecFlagsBlockingDecode = 32,
|
---|
318 | ImageCodecFlagsBuiltin = 65536,
|
---|
319 | ImageCodecFlagsSystem = 131072,
|
---|
320 | ImageCodecFlagsUser = 262144
|
---|
321 | };
|
---|
322 |
|
---|
323 | enum ImageFlags
|
---|
324 | {
|
---|
325 | ImageFlagsNone = 0,
|
---|
326 | ImageFlagsScalable = 0x0001,
|
---|
327 | ImageFlagsHasAlpha = 0x0002,
|
---|
328 | ImageFlagsHasTranslucent = 0x0004,
|
---|
329 | ImageFlagsPartiallyScalable = 0x0008,
|
---|
330 | ImageFlagsColorSpaceRGB = 0x0010,
|
---|
331 | ImageFlagsColorSpaceCMYK = 0x0020,
|
---|
332 | ImageFlagsColorSpaceGRAY = 0x0040,
|
---|
333 | ImageFlagsColorSpaceYCBCR = 0x0080,
|
---|
334 | ImageFlagsColorSpaceYCCK = 0x0100,
|
---|
335 | ImageFlagsHasRealDPI = 0x1000,
|
---|
336 | ImageFlagsHasRealPixelSize = 0x2000,
|
---|
337 | ImageFlagsReadOnly = 0x00010000,
|
---|
338 | ImageFlagsCaching = 0x00020000
|
---|
339 | };
|
---|
340 |
|
---|
341 | enum CombineMode
|
---|
342 | {
|
---|
343 | CombineModeReplace,
|
---|
344 | CombineModeIntersect,
|
---|
345 | CombineModeUnion,
|
---|
346 | CombineModeXor,
|
---|
347 | CombineModeExclude,
|
---|
348 | CombineModeComplement
|
---|
349 | };
|
---|
350 |
|
---|
351 | enum FlushIntention
|
---|
352 | {
|
---|
353 | FlushIntentionFlush = 0,
|
---|
354 | FlushIntentionSync = 1
|
---|
355 | };
|
---|
356 |
|
---|
357 | enum CoordinateSpace
|
---|
358 | {
|
---|
359 | CoordinateSpaceWorld,
|
---|
360 | CoordinateSpacePage,
|
---|
361 | CoordinateSpaceDevice
|
---|
362 | };
|
---|
363 |
|
---|
364 | enum GpTestControlEnum
|
---|
365 | {
|
---|
366 | TestControlForceBilinear = 0,
|
---|
367 | TestControlNoICM = 1,
|
---|
368 | TestControlGetBuildNumber = 2
|
---|
369 | };
|
---|
370 |
|
---|
371 | enum MetafileFrameUnit
|
---|
372 | {
|
---|
373 | MetafileFrameUnitPixel = UnitPixel,
|
---|
374 | MetafileFrameUnitPoint = UnitPoint,
|
---|
375 | MetafileFrameUnitInch = UnitInch,
|
---|
376 | MetafileFrameUnitDocument = UnitDocument,
|
---|
377 | MetafileFrameUnitMillimeter = UnitMillimeter,
|
---|
378 | MetafileFrameUnitGdi
|
---|
379 | };
|
---|
380 |
|
---|
381 | enum HatchStyle
|
---|
382 | {
|
---|
383 | HatchStyleHorizontal = 0,
|
---|
384 | HatchStyleVertical = 1,
|
---|
385 | HatchStyleForwardDiagonal = 2,
|
---|
386 | HatchStyleBackwardDiagonal = 3,
|
---|
387 | HatchStyleCross = 4,
|
---|
388 | HatchStyleDiagonalCross = 5,
|
---|
389 | HatchStyle05Percent = 6,
|
---|
390 | HatchStyle10Percent = 7,
|
---|
391 | HatchStyle20Percent = 8,
|
---|
392 | HatchStyle25Percent = 9,
|
---|
393 | HatchStyle30Percent = 10,
|
---|
394 | HatchStyle40Percent = 11,
|
---|
395 | HatchStyle50Percent = 12,
|
---|
396 | HatchStyle60Percent = 13,
|
---|
397 | HatchStyle70Percent = 14,
|
---|
398 | HatchStyle75Percent = 15,
|
---|
399 | HatchStyle80Percent = 16,
|
---|
400 | HatchStyle90Percent = 17,
|
---|
401 | HatchStyleLightDownwardDiagonal = 18,
|
---|
402 | HatchStyleLightUpwardDiagonal = 19,
|
---|
403 | HatchStyleDarkDownwardDiagonal = 20,
|
---|
404 | HatchStyleDarkUpwardDiagonal = 21,
|
---|
405 | HatchStyleWideDownwardDiagonal = 22,
|
---|
406 | HatchStyleWideUpwardDiagonal = 23,
|
---|
407 | HatchStyleLightVertical = 24,
|
---|
408 | HatchStyleLightHorizontal = 25,
|
---|
409 | HatchStyleNarrowVertical = 26,
|
---|
410 | HatchStyleNarrowHorizontal = 27,
|
---|
411 | HatchStyleDarkVertical = 28,
|
---|
412 | HatchStyleDarkHorizontal = 29,
|
---|
413 | HatchStyleDashedDownwardDiagonal = 30,
|
---|
414 | HatchStyleDashedUpwardDiagonal = 31,
|
---|
415 | HatchStyleDashedHorizontal = 32,
|
---|
416 | HatchStyleDashedVertical = 33,
|
---|
417 | HatchStyleSmallConfetti = 34,
|
---|
418 | HatchStyleLargeConfetti = 35,
|
---|
419 | HatchStyleZigZag = 36,
|
---|
420 | HatchStyleWave = 37,
|
---|
421 | HatchStyleDiagonalBrick = 38,
|
---|
422 | HatchStyleHorizontalBrick = 39,
|
---|
423 | HatchStyleWeave = 40,
|
---|
424 | HatchStylePlaid = 41,
|
---|
425 | HatchStyleDivot = 42,
|
---|
426 | HatchStyleDottedGrid = 43,
|
---|
427 | HatchStyleDottedDiamond = 44,
|
---|
428 | HatchStyleShingle = 45,
|
---|
429 | HatchStyleTrellis = 46,
|
---|
430 | HatchStyleSphere = 47,
|
---|
431 | HatchStyleSmallGrid = 48,
|
---|
432 | HatchStyleSmallCheckerBoard = 49,
|
---|
433 | HatchStyleLargeCheckerBoard = 50,
|
---|
434 | HatchStyleOutlinedDiamond = 51,
|
---|
435 | HatchStyleSolidDiamond = 52,
|
---|
436 | HatchStyleTotal = 53,
|
---|
437 | HatchStyleLargeGrid = HatchStyleCross,
|
---|
438 | HatchStyleMin = HatchStyleHorizontal,
|
---|
439 | HatchStyleMax = HatchStyleTotal - 1
|
---|
440 | };
|
---|
441 |
|
---|
442 | #ifndef __cplusplus
|
---|
443 |
|
---|
444 | typedef enum Unit Unit;
|
---|
445 | typedef enum BrushType BrushType;
|
---|
446 | typedef enum FillMode FillMode;
|
---|
447 | typedef enum LineCap LineCap;
|
---|
448 | typedef enum PathPointType PathPointType;
|
---|
449 | typedef enum LineJoin LineJoin;
|
---|
450 | typedef enum QualityMode QualityMode;
|
---|
451 | typedef enum SmoothingMode SmoothingMode;
|
---|
452 | typedef enum CompositingQuality CompositingQuality;
|
---|
453 | typedef enum InterpolationMode InterpolationMode;
|
---|
454 | typedef enum PixelOffsetMode PixelOffsetMode;
|
---|
455 | typedef enum DashCap DashCap;
|
---|
456 | typedef enum DashStyle DashStyle;
|
---|
457 | typedef enum MatrixOrder MatrixOrder;
|
---|
458 | typedef enum ImageType ImageType;
|
---|
459 | typedef enum ImageFlags ImageFlags;
|
---|
460 | typedef enum WarpMode WarpMode;
|
---|
461 | typedef enum WrapMode WrapMode;
|
---|
462 | typedef enum MetafileType MetafileType;
|
---|
463 | typedef enum LinearGradientMode LinearGradientMode;
|
---|
464 | typedef enum EmfType EmfType;
|
---|
465 | typedef enum CompositingMode CompositingMode;
|
---|
466 | typedef enum TextRenderingHint TextRenderingHint;
|
---|
467 | typedef enum StringAlignment StringAlignment;
|
---|
468 | typedef enum StringDigitSubstitute StringDigitSubstitute;
|
---|
469 | typedef enum StringTrimming StringTrimming;
|
---|
470 | typedef enum FontStyle FontStyle;
|
---|
471 | typedef enum StringFormatFlags StringFormatFlags;
|
---|
472 | typedef enum HotkeyPrefix HotkeyPrefix;
|
---|
473 | typedef enum PenAlignment GpPenAlignment;
|
---|
474 | typedef enum PaletteFlags PaletteFlags;
|
---|
475 | typedef enum ImageCodecFlags ImageCodecFlags;
|
---|
476 | typedef enum CombineMode CombineMode;
|
---|
477 | typedef enum FlushIntention FlushIntention;
|
---|
478 | typedef enum CoordinateSpace CoordinateSpace;
|
---|
479 | typedef enum GpTestControlEnum GpTestControlEnum;
|
---|
480 | typedef enum MetafileFrameUnit MetafileFrameUnit;
|
---|
481 | typedef enum PenType PenType;
|
---|
482 | typedef enum HatchStyle HatchStyle;
|
---|
483 |
|
---|
484 | #endif /* end of c typedefs */
|
---|
485 |
|
---|
486 | #endif
|
---|