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
;
37 BrushTypeSolidColor
= 0,
38 BrushTypeHatchFill
= 1,
39 BrushTypeTextureFill
= 2,
40 BrushTypePathGradient
= 3,
41 BrushTypeLinearGradient
= 4
46 FillModeAlternate
= 0,
55 LineCapTriangle
= 0x03,
57 LineCapNoAnchor
= 0x10,
58 LineCapSquareAnchor
= 0x11,
59 LineCapRoundAnchor
= 0x12,
60 LineCapDiamondAnchor
= 0x13,
61 LineCapArrowAnchor
= 0x14,
64 LineCapAnchorMask
= 0xf0
68 PathPointTypeStart
= 0, /* start of a figure */
69 PathPointTypeLine
= 1,
70 PathPointTypeBezier
= 3,
71 PathPointTypePathTypeMask
= 7,
72 PathPointTypePathDashMode
= 16, /* not used */
73 PathPointTypePathMarker
= 32,
74 PathPointTypeCloseSubpath
= 128, /* end of a closed figure */
75 PathPointTypeBezier3
= 3
83 LineJoinMiterClipped
= 3
88 QualityModeInvalid
= -1,
89 QualityModeDefault
= 0,
96 SmoothingModeInvalid
= QualityModeInvalid
,
97 SmoothingModeDefault
= QualityModeDefault
,
98 SmoothingModeHighSpeed
= QualityModeLow
,
99 SmoothingModeHighQuality
= QualityModeHigh
,
101 SmoothingModeAntiAlias
104 enum CompositingQuality
106 CompositingQualityInvalid
= QualityModeInvalid
,
107 CompositingQualityDefault
= QualityModeDefault
,
108 CompositingQualityHighSpeed
= QualityModeLow
,
109 CompositingQualityHighQuality
= QualityModeHigh
,
110 CompositingQualityGammaCorrected
,
111 CompositingQualityAssumeLinear
114 enum InterpolationMode
116 InterpolationModeInvalid
= QualityModeInvalid
,
117 InterpolationModeDefault
= QualityModeDefault
,
118 InterpolationModeLowQuality
= QualityModeLow
,
119 InterpolationModeHighQuality
= QualityModeHigh
,
120 InterpolationModeBilinear
,
121 InterpolationModeBicubic
,
122 InterpolationModeNearestNeighbor
,
123 InterpolationModeHighQualityBilinear
,
124 InterpolationModeHighQualityBicubic
129 PixelOffsetModeInvalid
= QualityModeInvalid
,
130 PixelOffsetModeDefault
= QualityModeDefault
,
131 PixelOffsetModeHighSpeed
= QualityModeLow
,
132 PixelOffsetModeHighQuality
= QualityModeHigh
,
156 MatrixOrderPrepend
= 0,
157 MatrixOrderAppend
= 1
180 MetafileTypeWmfPlaceable
,
182 MetafileTypeEmfPlusOnly
,
183 MetafileTypeEmfPlusDual
186 enum LinearGradientMode
188 LinearGradientModeHorizontal
,
189 LinearGradientModeVertical
,
190 LinearGradientModeForwardDiagonal
,
191 LinearGradientModeBackwardDiagonal
196 EmfTypeEmfOnly
= MetafileTypeEmf
,
197 EmfTypeEmfPlusOnly
= MetafileTypeEmfPlusOnly
,
198 EmfTypeEmfPlusDual
= MetafileTypeEmfPlusDual
203 CompositingModeSourceOver
,
204 CompositingModeSourceCopy
207 enum TextRenderingHint
209 TextRenderingHintSystemDefault
= 0,
210 TextRenderingHintSingleBitPerPixelGridFit
,
211 TextRenderingHintSingleBitPerPixel
,
212 TextRenderingHintAntiAliasGridFit
,
213 TextRenderingHintAntiAlias
,
214 TextRenderingHintClearTypeGridFit
219 StringAlignmentNear
= 0,
220 StringAlignmentCenter
= 1,
221 StringAlignmentFar
= 2
224 enum StringFormatFlags
226 StringFormatFlagsDirectionRightToLeft
= 0x00000001,
227 StringFormatFlagsDirectionVertical
= 0x00000002,
228 StringFormatFlagsNoFitBlackBox
= 0x00000004,
229 StringFormatFlagsDisplayFormatControl
= 0x00000020,
230 StringFormatFlagsNoFontFallback
= 0x00000400,
231 StringFormatFlagsMeasureTrailingSpaces
= 0x00000800,
232 StringFormatFlagsNoWrap
= 0x00001000,
233 StringFormatFlagsLineLimit
= 0x00002000,
234 StringFormatFlagsNoClip
= 0x00004000
239 StringTrimmingNone
= 0,
240 StringTrimmingCharacter
= 1,
241 StringTrimmingWord
= 2,
242 StringTrimmingEllipsisCharacter
= 3,
243 StringTrimmingEllipsisWord
= 4,
244 StringTrimmingEllipsisPath
= 5
249 HotkeyPrefixNone
= 0,
250 HotkeyPrefixShow
= 1,
257 typedef enum Unit Unit
;
258 typedef enum BrushType BrushType
;
259 typedef enum FillMode FillMode
;
260 typedef enum LineCap LineCap
;
261 typedef enum PathPointType PathPointType
;
262 typedef enum LineJoin LineJoin
;
263 typedef enum QualityMode QualityMode
;
264 typedef enum SmoothingMode SmoothingMode
;
265 typedef enum CompositingQuality CompositingQuality
;
266 typedef enum InterpolationMode InterpolationMode
;
267 typedef enum PixelOffsetMode PixelOffsetMode
;
268 typedef enum DashCap DashCap
;
269 typedef enum DashStyle DashStyle
;
270 typedef enum MatrixOrder MatrixOrder
;
271 typedef enum ImageType ImageType
;
272 typedef enum WrapMode WrapMode
;
273 typedef enum MetafileType MetafileType
;
274 typedef enum LinearGradientMode LinearGradientMode
;
275 typedef enum EmfType EmfType
;
276 typedef enum CompositingMode CompositingMode
;
277 typedef enum TextRenderingHint TextRenderingHint
;
278 typedef enum StringAlignment StringAlignment
;
279 typedef enum StringTrimming StringTrimming
;
280 typedef enum StringFormatFlags StringFormatFlags
;
281 typedef enum HotkeyPrefix HotkeyPrefix
;
283 #endif /* end of c typedefs */