2 * Copyright (C) 2007 Google (Evan Stade)
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.
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.
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
19 #ifndef _GDIPLUSENUMS_H
20 #define _GDIPLUSENUMS_H
22 typedef UINT GraphicsState
;
23 typedef UINT GraphicsContainer
;
38 BrushTypeSolidColor
= 0,
39 BrushTypeHatchFill
= 1,
40 BrushTypeTextureFill
= 2,
41 BrushTypePathGradient
= 3,
42 BrushTypeLinearGradient
= 4
47 FillModeAlternate
= 0,
56 LineCapTriangle
= 0x03,
58 LineCapNoAnchor
= 0x10,
59 LineCapSquareAnchor
= 0x11,
60 LineCapRoundAnchor
= 0x12,
61 LineCapDiamondAnchor
= 0x13,
62 LineCapArrowAnchor
= 0x14,
65 LineCapAnchorMask
= 0xf0
69 PathPointTypeStart
= 0, /* start of a figure */
70 PathPointTypeLine
= 1,
71 PathPointTypeBezier
= 3,
72 PathPointTypePathTypeMask
= 7,
73 PathPointTypePathDashMode
= 16, /* not used */
74 PathPointTypePathMarker
= 32,
75 PathPointTypeCloseSubpath
= 128, /* end of a closed figure */
76 PathPointTypeBezier3
= 3
81 PenTypeSolidColor
= BrushTypeSolidColor
,
82 PenTypeHatchFill
= BrushTypeHatchFill
,
83 PenTypeTextureFill
= BrushTypeTextureFill
,
84 PenTypePathGradient
= BrushTypePathGradient
,
85 PenTypeLinearGradient
= BrushTypeLinearGradient
,
94 LineJoinMiterClipped
= 3
99 QualityModeInvalid
= -1,
100 QualityModeDefault
= 0,
107 SmoothingModeInvalid
= QualityModeInvalid
,
108 SmoothingModeDefault
= QualityModeDefault
,
109 SmoothingModeHighSpeed
= QualityModeLow
,
110 SmoothingModeHighQuality
= QualityModeHigh
,
112 SmoothingModeAntiAlias
115 enum CompositingQuality
117 CompositingQualityInvalid
= QualityModeInvalid
,
118 CompositingQualityDefault
= QualityModeDefault
,
119 CompositingQualityHighSpeed
= QualityModeLow
,
120 CompositingQualityHighQuality
= QualityModeHigh
,
121 CompositingQualityGammaCorrected
,
122 CompositingQualityAssumeLinear
125 enum InterpolationMode
127 InterpolationModeInvalid
= QualityModeInvalid
,
128 InterpolationModeDefault
= QualityModeDefault
,
129 InterpolationModeLowQuality
= QualityModeLow
,
130 InterpolationModeHighQuality
= QualityModeHigh
,
131 InterpolationModeBilinear
,
132 InterpolationModeBicubic
,
133 InterpolationModeNearestNeighbor
,
134 InterpolationModeHighQualityBilinear
,
135 InterpolationModeHighQualityBicubic
140 PenAlignmentCenter
= 0,
141 PenAlignmentInset
= 1
146 PixelOffsetModeInvalid
= QualityModeInvalid
,
147 PixelOffsetModeDefault
= QualityModeDefault
,
148 PixelOffsetModeHighSpeed
= QualityModeLow
,
149 PixelOffsetModeHighQuality
= QualityModeHigh
,
173 MatrixOrderPrepend
= 0,
174 MatrixOrderAppend
= 1
197 MetafileTypeWmfPlaceable
,
199 MetafileTypeEmfPlusOnly
,
200 MetafileTypeEmfPlusDual
203 enum LinearGradientMode
205 LinearGradientModeHorizontal
,
206 LinearGradientModeVertical
,
207 LinearGradientModeForwardDiagonal
,
208 LinearGradientModeBackwardDiagonal
213 EmfTypeEmfOnly
= MetafileTypeEmf
,
214 EmfTypeEmfPlusOnly
= MetafileTypeEmfPlusOnly
,
215 EmfTypeEmfPlusDual
= MetafileTypeEmfPlusDual
220 CompositingModeSourceOver
,
221 CompositingModeSourceCopy
224 enum TextRenderingHint
226 TextRenderingHintSystemDefault
= 0,
227 TextRenderingHintSingleBitPerPixelGridFit
,
228 TextRenderingHintSingleBitPerPixel
,
229 TextRenderingHintAntiAliasGridFit
,
230 TextRenderingHintAntiAlias
,
231 TextRenderingHintClearTypeGridFit
236 StringAlignmentNear
= 0,
237 StringAlignmentCenter
= 1,
238 StringAlignmentFar
= 2
241 enum StringDigitSubstitute
243 StringDigitSubstituteUser
= 0,
244 StringDigitSubstituteNone
= 1,
245 StringDigitSubstituteNational
= 2,
246 StringDigitSubstituteTraditional
= 3
249 enum StringFormatFlags
251 StringFormatFlagsDirectionRightToLeft
= 0x00000001,
252 StringFormatFlagsDirectionVertical
= 0x00000002,
253 StringFormatFlagsNoFitBlackBox
= 0x00000004,
254 StringFormatFlagsDisplayFormatControl
= 0x00000020,
255 StringFormatFlagsNoFontFallback
= 0x00000400,
256 StringFormatFlagsMeasureTrailingSpaces
= 0x00000800,
257 StringFormatFlagsNoWrap
= 0x00001000,
258 StringFormatFlagsLineLimit
= 0x00002000,
259 StringFormatFlagsNoClip
= 0x00004000
264 StringTrimmingNone
= 0,
265 StringTrimmingCharacter
= 1,
266 StringTrimmingWord
= 2,
267 StringTrimmingEllipsisCharacter
= 3,
268 StringTrimmingEllipsisWord
= 4,
269 StringTrimmingEllipsisPath
= 5
274 FontStyleRegular
= 0,
277 FontStyleBoldItalic
= 3,
278 FontStyleUnderline
= 4,
279 FontStyleStrikeout
= 8
284 HotkeyPrefixNone
= 0,
285 HotkeyPrefixShow
= 1,
291 ImageCodecFlagsEncoder
= 1,
292 ImageCodecFlagsDecoder
= 2,
293 ImageCodecFlagsSupportBitmap
= 4,
294 ImageCodecFlagsSupportVector
= 8,
295 ImageCodecFlagsSeekableEncode
= 16,
296 ImageCodecFlagsBlockingDecode
= 32,
297 ImageCodecFlagsBuiltin
= 65536,
298 ImageCodecFlagsSystem
= 131072,
299 ImageCodecFlagsUser
= 262144
305 ImageFlagsScalable
= 0x0001,
306 ImageFlagsHasAlpha
= 0x0002,
307 ImageFlagsHasTranslucent
= 0x0004,
308 ImageFlagsPartiallyScalable
= 0x0008,
309 ImageFlagsColorSpaceRGB
= 0x0010,
310 ImageFlagsColorSpaceCMYK
= 0x0020,
311 ImageFlagsColorSpaceGRAY
= 0x0040,
312 ImageFlagsColorSpaceYCBCR
= 0x0080,
313 ImageFlagsColorSpaceYCCK
= 0x0100,
314 ImageFlagsHasRealDPI
= 0x1000,
315 ImageFlagsHasRealPixelSize
= 0x2000,
316 ImageFlagsReadOnly
= 0x00010000,
317 ImageFlagsCaching
= 0x00020000
323 CombineModeIntersect
,
327 CombineModeComplement
332 FlushIntentionFlush
= 0,
333 FlushIntentionSync
= 1
338 CoordinateSpaceWorld
,
340 CoordinateSpaceDevice
343 enum GpTestControlEnum
345 TestControlForceBilinear
= 0,
346 TestControlNoICM
= 1,
347 TestControlGetBuildNumber
= 2
350 enum MetafileFrameUnit
352 MetafileFrameUnitPixel
= UnitPixel
,
353 MetafileFrameUnitPoint
= UnitPoint
,
354 MetafileFrameUnitInch
= UnitInch
,
355 MetafileFrameUnitDocument
= UnitDocument
,
356 MetafileFrameUnitMillimeter
= UnitMillimeter
,
362 typedef enum Unit Unit
;
363 typedef enum BrushType BrushType
;
364 typedef enum FillMode FillMode
;
365 typedef enum LineCap LineCap
;
366 typedef enum PathPointType PathPointType
;
367 typedef enum LineJoin LineJoin
;
368 typedef enum QualityMode QualityMode
;
369 typedef enum SmoothingMode SmoothingMode
;
370 typedef enum CompositingQuality CompositingQuality
;
371 typedef enum InterpolationMode InterpolationMode
;
372 typedef enum PixelOffsetMode PixelOffsetMode
;
373 typedef enum DashCap DashCap
;
374 typedef enum DashStyle DashStyle
;
375 typedef enum MatrixOrder MatrixOrder
;
376 typedef enum ImageType ImageType
;
377 typedef enum ImageFlags ImageFlags
;
378 typedef enum WrapMode WrapMode
;
379 typedef enum MetafileType MetafileType
;
380 typedef enum LinearGradientMode LinearGradientMode
;
381 typedef enum EmfType EmfType
;
382 typedef enum CompositingMode CompositingMode
;
383 typedef enum TextRenderingHint TextRenderingHint
;
384 typedef enum StringAlignment StringAlignment
;
385 typedef enum StringDigitSubstitute StringDigitSubstitute
;
386 typedef enum StringTrimming StringTrimming
;
387 typedef enum FontStyle FontStyle
;
388 typedef enum StringFormatFlags StringFormatFlags
;
389 typedef enum HotkeyPrefix HotkeyPrefix
;
390 typedef enum PenAlignment GpPenAlignment
;
391 typedef enum ImageCodecFlags ImageCodecFlags
;
392 typedef enum CombineMode CombineMode
;
393 typedef enum FlushIntention FlushIntention
;
394 typedef enum CoordinateSpace CoordinateSpace
;
395 typedef enum GpTestControlEnum GpTestControlEnum
;
396 typedef enum MetafileFrameUnit MetafileFrameUnit
;
397 typedef enum PenType PenType
;
399 #endif /* end of c typedefs */