VirtualBox

source: vbox/trunk/src/VBox/Additions/WINNT/Graphics/Wine/include/gdiplusenums.h@ 33876

Last change on this file since 33876 was 33656, checked in by vboxsync, 14 years ago

*: rebrand Sun (L)GPL disclaimers

  • Property svn:eol-style set to native
File size: 12.6 KB
Line 
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
31typedef UINT GraphicsState;
32typedef UINT GraphicsContainer;
33
34enum 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
45enum BrushType
46{
47 BrushTypeSolidColor = 0,
48 BrushTypeHatchFill = 1,
49 BrushTypeTextureFill = 2,
50 BrushTypePathGradient = 3,
51 BrushTypeLinearGradient = 4
52};
53
54enum FillMode
55{
56 FillModeAlternate = 0,
57 FillModeWinding = 1
58};
59
60enum 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
77enum 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
88enum PenType
89{
90 PenTypeSolidColor = BrushTypeSolidColor,
91 PenTypeHatchFill = BrushTypeHatchFill,
92 PenTypeTextureFill = BrushTypeTextureFill,
93 PenTypePathGradient = BrushTypePathGradient,
94 PenTypeLinearGradient = BrushTypeLinearGradient,
95 PenTypeUnknown = -1
96};
97
98enum LineJoin
99{
100 LineJoinMiter = 0,
101 LineJoinBevel = 1,
102 LineJoinRound = 2,
103 LineJoinMiterClipped = 3
104};
105
106enum QualityMode
107{
108 QualityModeInvalid = -1,
109 QualityModeDefault = 0,
110 QualityModeLow = 1,
111 QualityModeHigh = 2
112};
113
114enum SmoothingMode
115{
116 SmoothingModeInvalid = QualityModeInvalid,
117 SmoothingModeDefault = QualityModeDefault,
118 SmoothingModeHighSpeed = QualityModeLow,
119 SmoothingModeHighQuality = QualityModeHigh,
120 SmoothingModeNone,
121 SmoothingModeAntiAlias
122};
123
124enum CompositingQuality
125{
126 CompositingQualityInvalid = QualityModeInvalid,
127 CompositingQualityDefault = QualityModeDefault,
128 CompositingQualityHighSpeed = QualityModeLow,
129 CompositingQualityHighQuality = QualityModeHigh,
130 CompositingQualityGammaCorrected,
131 CompositingQualityAssumeLinear
132};
133
134enum 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
147enum PenAlignment
148{
149 PenAlignmentCenter = 0,
150 PenAlignmentInset = 1
151};
152
153enum PixelOffsetMode
154{
155 PixelOffsetModeInvalid = QualityModeInvalid,
156 PixelOffsetModeDefault = QualityModeDefault,
157 PixelOffsetModeHighSpeed = QualityModeLow,
158 PixelOffsetModeHighQuality = QualityModeHigh,
159 PixelOffsetModeNone,
160 PixelOffsetModeHalf
161};
162
163enum DashCap
164{
165 DashCapFlat = 0,
166 DashCapRound = 2,
167 DashCapTriangle = 3
168};
169
170enum DashStyle
171{
172 DashStyleSolid,
173 DashStyleDash,
174 DashStyleDot,
175 DashStyleDashDot,
176 DashStyleDashDotDot,
177 DashStyleCustom
178};
179
180enum MatrixOrder
181{
182 MatrixOrderPrepend = 0,
183 MatrixOrderAppend = 1
184};
185
186enum ImageType
187{
188 ImageTypeUnknown,
189 ImageTypeBitmap,
190 ImageTypeMetafile
191};
192
193enum WarpMode {
194 WarpModePerspective,
195 WarpModeBilinear
196};
197
198enum WrapMode
199{
200 WrapModeTile,
201 WrapModeTileFlipX,
202 WrapModeTileFlipY,
203 WrapModeTileFlipXY,
204 WrapModeClamp
205};
206
207enum MetafileType
208{
209 MetafileTypeInvalid,
210 MetafileTypeWmf,
211 MetafileTypeWmfPlaceable,
212 MetafileTypeEmf,
213 MetafileTypeEmfPlusOnly,
214 MetafileTypeEmfPlusDual
215};
216
217enum LinearGradientMode
218{
219 LinearGradientModeHorizontal,
220 LinearGradientModeVertical,
221 LinearGradientModeForwardDiagonal,
222 LinearGradientModeBackwardDiagonal
223};
224
225enum EmfType
226{
227 EmfTypeEmfOnly = MetafileTypeEmf,
228 EmfTypeEmfPlusOnly = MetafileTypeEmfPlusOnly,
229 EmfTypeEmfPlusDual = MetafileTypeEmfPlusDual
230};
231
232enum CompositingMode
233{
234 CompositingModeSourceOver,
235 CompositingModeSourceCopy
236};
237
238enum TextRenderingHint
239{
240 TextRenderingHintSystemDefault = 0,
241 TextRenderingHintSingleBitPerPixelGridFit,
242 TextRenderingHintSingleBitPerPixel,
243 TextRenderingHintAntiAliasGridFit,
244 TextRenderingHintAntiAlias,
245 TextRenderingHintClearTypeGridFit
246};
247
248enum StringAlignment
249{
250 StringAlignmentNear = 0,
251 StringAlignmentCenter = 1,
252 StringAlignmentFar = 2
253};
254
255enum StringDigitSubstitute
256{
257 StringDigitSubstituteUser = 0,
258 StringDigitSubstituteNone = 1,
259 StringDigitSubstituteNational = 2,
260 StringDigitSubstituteTraditional = 3
261};
262
263enum 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
276enum StringTrimming
277{
278 StringTrimmingNone = 0,
279 StringTrimmingCharacter = 1,
280 StringTrimmingWord = 2,
281 StringTrimmingEllipsisCharacter = 3,
282 StringTrimmingEllipsisWord = 4,
283 StringTrimmingEllipsisPath = 5
284};
285
286enum FontStyle
287{
288 FontStyleRegular = 0,
289 FontStyleBold = 1,
290 FontStyleItalic = 2,
291 FontStyleBoldItalic = 3,
292 FontStyleUnderline = 4,
293 FontStyleStrikeout = 8
294};
295
296enum HotkeyPrefix
297{
298 HotkeyPrefixNone = 0,
299 HotkeyPrefixShow = 1,
300 HotkeyPrefixHide = 2
301};
302
303enum PaletteFlags
304{
305 PaletteFlagsHasAlpha = 1,
306 PaletteFlagsGrayScale = 2,
307 PaletteFlagsHalftone = 4
308};
309
310enum 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
323enum 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
341enum CombineMode
342{
343 CombineModeReplace,
344 CombineModeIntersect,
345 CombineModeUnion,
346 CombineModeXor,
347 CombineModeExclude,
348 CombineModeComplement
349};
350
351enum FlushIntention
352{
353 FlushIntentionFlush = 0,
354 FlushIntentionSync = 1
355};
356
357enum CoordinateSpace
358{
359 CoordinateSpaceWorld,
360 CoordinateSpacePage,
361 CoordinateSpaceDevice
362};
363
364enum GpTestControlEnum
365{
366 TestControlForceBilinear = 0,
367 TestControlNoICM = 1,
368 TestControlGetBuildNumber = 2
369};
370
371enum MetafileFrameUnit
372{
373 MetafileFrameUnitPixel = UnitPixel,
374 MetafileFrameUnitPoint = UnitPoint,
375 MetafileFrameUnitInch = UnitInch,
376 MetafileFrameUnitDocument = UnitDocument,
377 MetafileFrameUnitMillimeter = UnitMillimeter,
378 MetafileFrameUnitGdi
379};
380
381enum 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
444typedef enum Unit Unit;
445typedef enum BrushType BrushType;
446typedef enum FillMode FillMode;
447typedef enum LineCap LineCap;
448typedef enum PathPointType PathPointType;
449typedef enum LineJoin LineJoin;
450typedef enum QualityMode QualityMode;
451typedef enum SmoothingMode SmoothingMode;
452typedef enum CompositingQuality CompositingQuality;
453typedef enum InterpolationMode InterpolationMode;
454typedef enum PixelOffsetMode PixelOffsetMode;
455typedef enum DashCap DashCap;
456typedef enum DashStyle DashStyle;
457typedef enum MatrixOrder MatrixOrder;
458typedef enum ImageType ImageType;
459typedef enum ImageFlags ImageFlags;
460typedef enum WarpMode WarpMode;
461typedef enum WrapMode WrapMode;
462typedef enum MetafileType MetafileType;
463typedef enum LinearGradientMode LinearGradientMode;
464typedef enum EmfType EmfType;
465typedef enum CompositingMode CompositingMode;
466typedef enum TextRenderingHint TextRenderingHint;
467typedef enum StringAlignment StringAlignment;
468typedef enum StringDigitSubstitute StringDigitSubstitute;
469typedef enum StringTrimming StringTrimming;
470typedef enum FontStyle FontStyle;
471typedef enum StringFormatFlags StringFormatFlags;
472typedef enum HotkeyPrefix HotkeyPrefix;
473typedef enum PenAlignment GpPenAlignment;
474typedef enum PaletteFlags PaletteFlags;
475typedef enum ImageCodecFlags ImageCodecFlags;
476typedef enum CombineMode CombineMode;
477typedef enum FlushIntention FlushIntention;
478typedef enum CoordinateSpace CoordinateSpace;
479typedef enum GpTestControlEnum GpTestControlEnum;
480typedef enum MetafileFrameUnit MetafileFrameUnit;
481typedef enum PenType PenType;
482typedef enum HatchStyle HatchStyle;
483
484#endif /* end of c typedefs */
485
486#endif
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette