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
84 LineJoinMiterClipped
= 3
89 QualityModeInvalid
= -1,
90 QualityModeDefault
= 0,
97 SmoothingModeInvalid
= QualityModeInvalid
,
98 SmoothingModeDefault
= QualityModeDefault
,
99 SmoothingModeHighSpeed
= QualityModeLow
,
100 SmoothingModeHighQuality
= QualityModeHigh
,
102 SmoothingModeAntiAlias
105 enum CompositingQuality
107 CompositingQualityInvalid
= QualityModeInvalid
,
108 CompositingQualityDefault
= QualityModeDefault
,
109 CompositingQualityHighSpeed
= QualityModeLow
,
110 CompositingQualityHighQuality
= QualityModeHigh
,
111 CompositingQualityGammaCorrected
,
112 CompositingQualityAssumeLinear
115 enum InterpolationMode
117 InterpolationModeInvalid
= QualityModeInvalid
,
118 InterpolationModeDefault
= QualityModeDefault
,
119 InterpolationModeLowQuality
= QualityModeLow
,
120 InterpolationModeHighQuality
= QualityModeHigh
,
121 InterpolationModeBilinear
,
122 InterpolationModeBicubic
,
123 InterpolationModeNearestNeighbor
,
124 InterpolationModeHighQualityBilinear
,
125 InterpolationModeHighQualityBicubic
130 PenAlignmentCenter
= 0,
131 PenAlignmentInset
= 1
136 PixelOffsetModeInvalid
= QualityModeInvalid
,
137 PixelOffsetModeDefault
= QualityModeDefault
,
138 PixelOffsetModeHighSpeed
= QualityModeLow
,
139 PixelOffsetModeHighQuality
= QualityModeHigh
,
163 MatrixOrderPrepend
= 0,
164 MatrixOrderAppend
= 1
187 MetafileTypeWmfPlaceable
,
189 MetafileTypeEmfPlusOnly
,
190 MetafileTypeEmfPlusDual
193 enum LinearGradientMode
195 LinearGradientModeHorizontal
,
196 LinearGradientModeVertical
,
197 LinearGradientModeForwardDiagonal
,
198 LinearGradientModeBackwardDiagonal
203 EmfTypeEmfOnly
= MetafileTypeEmf
,
204 EmfTypeEmfPlusOnly
= MetafileTypeEmfPlusOnly
,
205 EmfTypeEmfPlusDual
= MetafileTypeEmfPlusDual
210 CompositingModeSourceOver
,
211 CompositingModeSourceCopy
214 enum TextRenderingHint
216 TextRenderingHintSystemDefault
= 0,
217 TextRenderingHintSingleBitPerPixelGridFit
,
218 TextRenderingHintSingleBitPerPixel
,
219 TextRenderingHintAntiAliasGridFit
,
220 TextRenderingHintAntiAlias
,
221 TextRenderingHintClearTypeGridFit
226 StringAlignmentNear
= 0,
227 StringAlignmentCenter
= 1,
228 StringAlignmentFar
= 2
231 enum StringDigitSubstitute
233 StringDigitSubstituteUser
= 0,
234 StringDigitSubstituteNone
= 1,
235 StringDigitSubstituteNational
= 2,
236 StringDigitSubstituteTraditional
= 3
239 enum StringFormatFlags
241 StringFormatFlagsDirectionRightToLeft
= 0x00000001,
242 StringFormatFlagsDirectionVertical
= 0x00000002,
243 StringFormatFlagsNoFitBlackBox
= 0x00000004,
244 StringFormatFlagsDisplayFormatControl
= 0x00000020,
245 StringFormatFlagsNoFontFallback
= 0x00000400,
246 StringFormatFlagsMeasureTrailingSpaces
= 0x00000800,
247 StringFormatFlagsNoWrap
= 0x00001000,
248 StringFormatFlagsLineLimit
= 0x00002000,
249 StringFormatFlagsNoClip
= 0x00004000
254 StringTrimmingNone
= 0,
255 StringTrimmingCharacter
= 1,
256 StringTrimmingWord
= 2,
257 StringTrimmingEllipsisCharacter
= 3,
258 StringTrimmingEllipsisWord
= 4,
259 StringTrimmingEllipsisPath
= 5
264 FontStyleRegular
= 0,
267 FontStyleBoldItalic
= 3,
268 FontStyleUnderline
= 4,
269 FontStyleStrikeout
= 8
274 HotkeyPrefixNone
= 0,
275 HotkeyPrefixShow
= 1,
281 ImageCodecFlagsEncoder
= 1,
282 ImageCodecFlagsDecoder
= 2,
283 ImageCodecFlagsSupportBitmap
= 4,
284 ImageCodecFlagsSupportVector
= 8,
285 ImageCodecFlagsSeekableEncode
= 16,
286 ImageCodecFlagsBlockingDecode
= 32,
287 ImageCodecFlagsBuiltin
= 65536,
288 ImageCodecFlagsSystem
= 131072,
289 ImageCodecFlagsUser
= 262144
295 ImageFlagsScalable
= 0x0001,
296 ImageFlagsHasAlpha
= 0x0002,
297 ImageFlagsHasTranslucent
= 0x0004,
298 ImageFlagsPartiallyScalable
= 0x0008,
299 ImageFlagsColorSpaceRGB
= 0x0010,
300 ImageFlagsColorSpaceCMYK
= 0x0020,
301 ImageFlagsColorSpaceGRAY
= 0x0040,
302 ImageFlagsColorSpaceYCBCR
= 0x0080,
303 ImageFlagsColorSpaceYCCK
= 0x0100,
304 ImageFlagsHasRealDPI
= 0x1000,
305 ImageFlagsHasRealPixelSize
= 0x2000,
306 ImageFlagsReadOnly
= 0x00010000,
307 ImageFlagsCaching
= 0x00020000
313 CombineModeIntersect
,
317 CombineModeComplement
322 FlushIntentionFlush
= 0,
323 FlushIntentionSync
= 1
328 CoordinateSpaceWorld
,
330 CoordinateSpaceDevice
333 enum GpTestControlEnum
335 TestControlForceBilinear
= 0,
336 TestControlNoICM
= 1,
337 TestControlGetBuildNumber
= 2
340 enum MetafileFrameUnit
342 MetafileFrameUnitPixel
= UnitPixel
,
343 MetafileFrameUnitPoint
= UnitPoint
,
344 MetafileFrameUnitInch
= UnitInch
,
345 MetafileFrameUnitDocument
= UnitDocument
,
346 MetafileFrameUnitMillimeter
= UnitMillimeter
,
352 typedef enum Unit Unit
;
353 typedef enum BrushType BrushType
;
354 typedef enum FillMode FillMode
;
355 typedef enum LineCap LineCap
;
356 typedef enum PathPointType PathPointType
;
357 typedef enum LineJoin LineJoin
;
358 typedef enum QualityMode QualityMode
;
359 typedef enum SmoothingMode SmoothingMode
;
360 typedef enum CompositingQuality CompositingQuality
;
361 typedef enum InterpolationMode InterpolationMode
;
362 typedef enum PixelOffsetMode PixelOffsetMode
;
363 typedef enum DashCap DashCap
;
364 typedef enum DashStyle DashStyle
;
365 typedef enum MatrixOrder MatrixOrder
;
366 typedef enum ImageType ImageType
;
367 typedef enum ImageFlags ImageFlags
;
368 typedef enum WrapMode WrapMode
;
369 typedef enum MetafileType MetafileType
;
370 typedef enum LinearGradientMode LinearGradientMode
;
371 typedef enum EmfType EmfType
;
372 typedef enum CompositingMode CompositingMode
;
373 typedef enum TextRenderingHint TextRenderingHint
;
374 typedef enum StringAlignment StringAlignment
;
375 typedef enum StringDigitSubstitute StringDigitSubstitute
;
376 typedef enum StringTrimming StringTrimming
;
377 typedef enum FontStyle FontStyle
;
378 typedef enum StringFormatFlags StringFormatFlags
;
379 typedef enum HotkeyPrefix HotkeyPrefix
;
380 typedef enum PenAlignment GpPenAlignment
;
381 typedef enum ImageCodecFlags ImageCodecFlags
;
382 typedef enum CombineMode CombineMode
;
383 typedef enum FlushIntention FlushIntention
;
384 typedef enum CoordinateSpace CoordinateSpace
;
385 typedef enum GpTestControlEnum GpTestControlEnum
;
386 typedef enum MetafileFrameUnit MetafileFrameUnit
;
388 #endif /* end of c typedefs */