2007-06-08 22:44:28 +02:00
|
|
|
/*
|
|
|
|
* Copyright (C) 2007 Google (Evan Stade)
|
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2.1 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This library is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Lesser General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
|
|
* License along with this library; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _GDIPLUSENUMS_H
|
|
|
|
#define _GDIPLUSENUMS_H
|
|
|
|
|
2007-07-14 02:51:37 +02:00
|
|
|
typedef UINT GraphicsState;
|
|
|
|
|
2007-06-08 22:44:28 +02:00
|
|
|
enum Unit
|
|
|
|
{
|
|
|
|
UnitWorld = 0,
|
|
|
|
UnitDisplay = 1,
|
|
|
|
UnitPixel = 2,
|
|
|
|
UnitPoint = 3,
|
|
|
|
UnitInch = 4,
|
|
|
|
UnitDocument = 5,
|
|
|
|
UnitMillimeter = 6
|
|
|
|
};
|
|
|
|
|
|
|
|
enum BrushType
|
|
|
|
{
|
|
|
|
BrushTypeSolidColor = 0,
|
|
|
|
BrushTypeHatchFill = 1,
|
|
|
|
BrushTypeTextureFill = 2,
|
|
|
|
BrushTypePathGradient = 3,
|
|
|
|
BrushTypeLinearGradient = 4
|
|
|
|
};
|
|
|
|
|
2007-06-22 01:15:17 +02:00
|
|
|
enum FillMode
|
|
|
|
{
|
|
|
|
FillModeAlternate = 0,
|
|
|
|
FillModeWinding = 1
|
|
|
|
};
|
|
|
|
|
2007-07-06 03:37:52 +02:00
|
|
|
enum LineCap
|
|
|
|
{
|
|
|
|
LineCapFlat = 0x00,
|
|
|
|
LineCapSquare = 0x01,
|
|
|
|
LineCapRound = 0x02,
|
|
|
|
LineCapTriangle = 0x03,
|
|
|
|
|
|
|
|
LineCapNoAnchor = 0x10,
|
|
|
|
LineCapSquareAnchor = 0x11,
|
|
|
|
LineCapRoundAnchor = 0x12,
|
|
|
|
LineCapDiamondAnchor = 0x13,
|
|
|
|
LineCapArrowAnchor = 0x14,
|
|
|
|
|
|
|
|
LineCapCustom = 0xff,
|
|
|
|
LineCapAnchorMask = 0xf0
|
|
|
|
};
|
|
|
|
|
2007-07-07 01:14:07 +02:00
|
|
|
enum PathPointType{
|
|
|
|
PathPointTypeStart = 0, /* start of a figure */
|
|
|
|
PathPointTypeLine = 1,
|
|
|
|
PathPointTypeBezier = 3,
|
|
|
|
PathPointTypePathTypeMask = 7,
|
|
|
|
PathPointTypePathDashMode = 16, /* not used */
|
|
|
|
PathPointTypePathMarker = 32,
|
|
|
|
PathPointTypeCloseSubpath = 128, /* end of a closed figure */
|
|
|
|
PathPointTypeBezier3 = 3
|
|
|
|
};
|
|
|
|
|
2007-07-13 04:42:47 +02:00
|
|
|
enum LineJoin
|
|
|
|
{
|
|
|
|
LineJoinMiter = 0,
|
|
|
|
LineJoinBevel = 1,
|
|
|
|
LineJoinRound = 2,
|
|
|
|
LineJoinMiterClipped = 3
|
|
|
|
};
|
|
|
|
|
2007-07-14 02:51:13 +02:00
|
|
|
enum QualityMode
|
|
|
|
{
|
|
|
|
QualityModeInvalid = -1,
|
|
|
|
QualityModeDefault = 0,
|
|
|
|
QualityModeLow = 1,
|
|
|
|
QualityModeHigh = 2
|
|
|
|
};
|
|
|
|
|
|
|
|
enum SmoothingMode
|
|
|
|
{
|
|
|
|
SmoothingModeInvalid = QualityModeInvalid,
|
|
|
|
SmoothingModeDefault = QualityModeDefault,
|
|
|
|
SmoothingModeHighSpeed = QualityModeLow,
|
|
|
|
SmoothingModeHighQuality = QualityModeHigh,
|
|
|
|
SmoothingModeNone,
|
|
|
|
SmoothingModeAntiAlias
|
|
|
|
};
|
|
|
|
|
2007-07-14 02:51:25 +02:00
|
|
|
enum CompositingQuality
|
|
|
|
{
|
|
|
|
CompositingQualityInvalid = QualityModeInvalid,
|
|
|
|
CompositingQualityDefault = QualityModeDefault,
|
|
|
|
CompositingQualityHighSpeed = QualityModeLow,
|
|
|
|
CompositingQualityHighQuality = QualityModeHigh,
|
|
|
|
CompositingQualityGammaCorrected,
|
|
|
|
CompositingQualityAssumeLinear
|
|
|
|
};
|
|
|
|
|
2007-07-14 02:51:29 +02:00
|
|
|
enum InterpolationMode
|
|
|
|
{
|
|
|
|
InterpolationModeInvalid = QualityModeInvalid,
|
|
|
|
InterpolationModeDefault = QualityModeDefault,
|
|
|
|
InterpolationModeLowQuality = QualityModeLow,
|
|
|
|
InterpolationModeHighQuality = QualityModeHigh,
|
|
|
|
InterpolationModeBilinear,
|
|
|
|
InterpolationModeBicubic,
|
|
|
|
InterpolationModeNearestNeighbor,
|
|
|
|
InterpolationModeHighQualityBilinear,
|
|
|
|
InterpolationModeHighQualityBicubic
|
|
|
|
};
|
|
|
|
|
2008-01-30 05:46:25 +01:00
|
|
|
enum PenAlignment
|
|
|
|
{
|
|
|
|
PenAlignmentCenter = 0,
|
|
|
|
PenAlignmentInset = 1
|
|
|
|
};
|
|
|
|
|
2007-07-14 02:51:33 +02:00
|
|
|
enum PixelOffsetMode
|
|
|
|
{
|
|
|
|
PixelOffsetModeInvalid = QualityModeInvalid,
|
|
|
|
PixelOffsetModeDefault = QualityModeDefault,
|
|
|
|
PixelOffsetModeHighSpeed = QualityModeLow,
|
|
|
|
PixelOffsetModeHighQuality = QualityModeHigh,
|
|
|
|
PixelOffsetModeNone,
|
|
|
|
PixelOffsetModeHalf
|
|
|
|
};
|
|
|
|
|
2007-07-17 04:44:50 +02:00
|
|
|
enum DashCap
|
|
|
|
{
|
|
|
|
DashCapFlat = 0,
|
|
|
|
DashCapRound = 2,
|
|
|
|
DashCapTriangle = 3
|
|
|
|
};
|
|
|
|
|
2007-07-17 04:45:16 +02:00
|
|
|
enum DashStyle
|
|
|
|
{
|
|
|
|
DashStyleSolid,
|
|
|
|
DashStyleDash,
|
|
|
|
DashStyleDot,
|
|
|
|
DashStyleDashDot,
|
|
|
|
DashStyleDashDotDot,
|
|
|
|
DashStyleCustom
|
|
|
|
};
|
|
|
|
|
2007-07-18 04:31:15 +02:00
|
|
|
enum MatrixOrder
|
|
|
|
{
|
|
|
|
MatrixOrderPrepend = 0,
|
|
|
|
MatrixOrderAppend = 1
|
|
|
|
};
|
|
|
|
|
2007-07-25 02:19:12 +02:00
|
|
|
enum ImageType
|
|
|
|
{
|
|
|
|
ImageTypeUnknown,
|
|
|
|
ImageTypeBitmap,
|
|
|
|
ImageTypeMetafile
|
|
|
|
};
|
|
|
|
|
2007-07-31 04:09:41 +02:00
|
|
|
enum WrapMode
|
|
|
|
{
|
|
|
|
WrapModeTile,
|
|
|
|
WrapModeTileFlipX,
|
|
|
|
WrapModeTileFlipY,
|
|
|
|
WrapModeTileFlipXY,
|
|
|
|
WrapModeClamp
|
|
|
|
};
|
|
|
|
|
2007-08-01 04:15:29 +02:00
|
|
|
enum MetafileType
|
|
|
|
{
|
|
|
|
MetafileTypeInvalid,
|
|
|
|
MetafileTypeWmf,
|
|
|
|
MetafileTypeWmfPlaceable,
|
|
|
|
MetafileTypeEmf,
|
|
|
|
MetafileTypeEmfPlusOnly,
|
|
|
|
MetafileTypeEmfPlusDual
|
|
|
|
};
|
|
|
|
|
2007-08-08 03:43:00 +02:00
|
|
|
enum LinearGradientMode
|
|
|
|
{
|
|
|
|
LinearGradientModeHorizontal,
|
|
|
|
LinearGradientModeVertical,
|
|
|
|
LinearGradientModeForwardDiagonal,
|
|
|
|
LinearGradientModeBackwardDiagonal
|
|
|
|
};
|
|
|
|
|
2007-08-10 03:25:37 +02:00
|
|
|
enum EmfType
|
|
|
|
{
|
|
|
|
EmfTypeEmfOnly = MetafileTypeEmf,
|
|
|
|
EmfTypeEmfPlusOnly = MetafileTypeEmfPlusOnly,
|
|
|
|
EmfTypeEmfPlusDual = MetafileTypeEmfPlusDual
|
|
|
|
};
|
|
|
|
|
2007-08-14 03:34:27 +02:00
|
|
|
enum CompositingMode
|
|
|
|
{
|
|
|
|
CompositingModeSourceOver,
|
|
|
|
CompositingModeSourceCopy
|
|
|
|
};
|
|
|
|
|
2007-08-15 04:00:09 +02:00
|
|
|
enum TextRenderingHint
|
|
|
|
{
|
|
|
|
TextRenderingHintSystemDefault = 0,
|
|
|
|
TextRenderingHintSingleBitPerPixelGridFit,
|
|
|
|
TextRenderingHintSingleBitPerPixel,
|
|
|
|
TextRenderingHintAntiAliasGridFit,
|
|
|
|
TextRenderingHintAntiAlias,
|
|
|
|
TextRenderingHintClearTypeGridFit
|
|
|
|
};
|
|
|
|
|
2007-08-15 04:00:32 +02:00
|
|
|
enum StringAlignment
|
|
|
|
{
|
|
|
|
StringAlignmentNear = 0,
|
|
|
|
StringAlignmentCenter = 1,
|
|
|
|
StringAlignmentFar = 2
|
|
|
|
};
|
|
|
|
|
2008-07-28 23:12:49 +02:00
|
|
|
enum StringDigitSubstitute
|
|
|
|
{
|
|
|
|
StringDigitSubstituteUser = 0,
|
|
|
|
StringDigitSubstituteNone = 1,
|
|
|
|
StringDigitSubstituteNational = 2,
|
|
|
|
StringDigitSubstituteTraditional = 3
|
|
|
|
};
|
|
|
|
|
2007-08-15 04:00:40 +02:00
|
|
|
enum StringFormatFlags
|
|
|
|
{
|
|
|
|
StringFormatFlagsDirectionRightToLeft = 0x00000001,
|
|
|
|
StringFormatFlagsDirectionVertical = 0x00000002,
|
|
|
|
StringFormatFlagsNoFitBlackBox = 0x00000004,
|
|
|
|
StringFormatFlagsDisplayFormatControl = 0x00000020,
|
|
|
|
StringFormatFlagsNoFontFallback = 0x00000400,
|
|
|
|
StringFormatFlagsMeasureTrailingSpaces = 0x00000800,
|
|
|
|
StringFormatFlagsNoWrap = 0x00001000,
|
|
|
|
StringFormatFlagsLineLimit = 0x00002000,
|
|
|
|
StringFormatFlagsNoClip = 0x00004000
|
|
|
|
};
|
|
|
|
|
|
|
|
enum StringTrimming
|
|
|
|
{
|
|
|
|
StringTrimmingNone = 0,
|
|
|
|
StringTrimmingCharacter = 1,
|
|
|
|
StringTrimmingWord = 2,
|
|
|
|
StringTrimmingEllipsisCharacter = 3,
|
|
|
|
StringTrimmingEllipsisWord = 4,
|
|
|
|
StringTrimmingEllipsisPath = 5
|
|
|
|
};
|
|
|
|
|
2008-06-21 19:02:53 +02:00
|
|
|
enum FontStyle
|
|
|
|
{
|
|
|
|
FontStyleRegular = 0,
|
|
|
|
FontStyleBold = 1,
|
|
|
|
FontStyleItalic = 2,
|
|
|
|
FontStyleBoldItalic = 3,
|
|
|
|
FontStyleUnderline = 4,
|
|
|
|
FontStyleStrikeout = 8
|
|
|
|
};
|
|
|
|
|
2007-08-15 04:00:53 +02:00
|
|
|
enum HotkeyPrefix
|
|
|
|
{
|
|
|
|
HotkeyPrefixNone = 0,
|
|
|
|
HotkeyPrefixShow = 1,
|
|
|
|
HotkeyPrefixHide = 2
|
|
|
|
};
|
|
|
|
|
2008-03-06 10:17:00 +01:00
|
|
|
enum ImageCodecFlags
|
|
|
|
{
|
2008-05-09 14:39:13 +02:00
|
|
|
ImageCodecFlagsEncoder = 1,
|
|
|
|
ImageCodecFlagsDecoder = 2,
|
|
|
|
ImageCodecFlagsSupportBitmap = 4,
|
|
|
|
ImageCodecFlagsSupportVector = 8,
|
|
|
|
ImageCodecFlagsSeekableEncode = 16,
|
|
|
|
ImageCodecFlagsBlockingDecode = 32,
|
|
|
|
ImageCodecFlagsBuiltin = 65536,
|
|
|
|
ImageCodecFlagsSystem = 131072,
|
|
|
|
ImageCodecFlagsUser = 262144
|
|
|
|
};
|
|
|
|
|
|
|
|
enum ImageFlags
|
|
|
|
{
|
|
|
|
ImageFlagsNone = 0,
|
|
|
|
ImageFlagsScalable = 0x0001,
|
|
|
|
ImageFlagsHasAlpha = 0x0002,
|
|
|
|
ImageFlagsHasTranslucent = 0x0004,
|
|
|
|
ImageFlagsPartiallyScalable = 0x0008,
|
|
|
|
ImageFlagsColorSpaceRGB = 0x0010,
|
|
|
|
ImageFlagsColorSpaceCMYK = 0x0020,
|
|
|
|
ImageFlagsColorSpaceGRAY = 0x0040,
|
|
|
|
ImageFlagsColorSpaceYCBCR = 0x0080,
|
|
|
|
ImageFlagsColorSpaceYCCK = 0x0100,
|
|
|
|
ImageFlagsHasRealDPI = 0x1000,
|
|
|
|
ImageFlagsHasRealPixelSize = 0x2000,
|
|
|
|
ImageFlagsReadOnly = 0x00010000,
|
|
|
|
ImageFlagsCaching = 0x00020000
|
2008-03-06 10:17:00 +01:00
|
|
|
};
|
2007-08-15 04:00:53 +02:00
|
|
|
|
2008-04-08 23:44:41 +02:00
|
|
|
enum CombineMode
|
|
|
|
{
|
|
|
|
CombineModeReplace,
|
|
|
|
CombineModeIntersect,
|
|
|
|
CombineModeUnion,
|
|
|
|
CombineModeXor,
|
|
|
|
CombineModeExclude,
|
|
|
|
CombineModeComplement
|
|
|
|
};
|
|
|
|
|
2008-06-18 09:33:10 +02:00
|
|
|
enum FlushIntention
|
|
|
|
{
|
|
|
|
FlushIntentionFlush = 0,
|
|
|
|
FlushIntentionSync = 1
|
|
|
|
};
|
|
|
|
|
2008-07-10 16:26:58 +02:00
|
|
|
enum CoordinateSpace
|
|
|
|
{
|
|
|
|
CoordinateSpaceWorld,
|
|
|
|
CoordinateSpacePage,
|
|
|
|
CoordinateSpaceDevice
|
|
|
|
};
|
|
|
|
|
2008-09-06 23:40:26 +02:00
|
|
|
enum GpTestControlEnum
|
|
|
|
{
|
|
|
|
TestControlForceBilinear = 0,
|
|
|
|
TestControlNoICM = 1,
|
|
|
|
TestControlGetBuildNumber = 2
|
|
|
|
};
|
|
|
|
|
2008-10-03 12:56:40 +02:00
|
|
|
enum MetafileFrameUnit
|
|
|
|
{
|
|
|
|
MetafileFrameUnitPixel = UnitPixel,
|
|
|
|
MetafileFrameUnitPoint = UnitPoint,
|
|
|
|
MetafileFrameUnitInch = UnitInch,
|
|
|
|
MetafileFrameUnitDocument = UnitDocument,
|
|
|
|
MetafileFrameUnitMillimeter = UnitMillimeter,
|
|
|
|
MetafileFrameUnitGdi
|
|
|
|
};
|
|
|
|
|
2007-06-08 22:44:28 +02:00
|
|
|
#ifndef __cplusplus
|
|
|
|
|
|
|
|
typedef enum Unit Unit;
|
|
|
|
typedef enum BrushType BrushType;
|
2007-06-22 01:15:17 +02:00
|
|
|
typedef enum FillMode FillMode;
|
2007-07-06 03:37:52 +02:00
|
|
|
typedef enum LineCap LineCap;
|
2007-07-07 01:14:07 +02:00
|
|
|
typedef enum PathPointType PathPointType;
|
2007-07-13 04:42:47 +02:00
|
|
|
typedef enum LineJoin LineJoin;
|
2007-07-14 02:51:13 +02:00
|
|
|
typedef enum QualityMode QualityMode;
|
|
|
|
typedef enum SmoothingMode SmoothingMode;
|
2007-07-14 02:51:25 +02:00
|
|
|
typedef enum CompositingQuality CompositingQuality;
|
2007-07-14 02:51:29 +02:00
|
|
|
typedef enum InterpolationMode InterpolationMode;
|
2007-07-14 02:51:33 +02:00
|
|
|
typedef enum PixelOffsetMode PixelOffsetMode;
|
2007-07-17 04:44:50 +02:00
|
|
|
typedef enum DashCap DashCap;
|
2007-07-17 04:45:16 +02:00
|
|
|
typedef enum DashStyle DashStyle;
|
2007-07-18 04:31:15 +02:00
|
|
|
typedef enum MatrixOrder MatrixOrder;
|
2007-07-25 02:19:12 +02:00
|
|
|
typedef enum ImageType ImageType;
|
2008-05-09 14:39:13 +02:00
|
|
|
typedef enum ImageFlags ImageFlags;
|
2007-07-31 04:09:41 +02:00
|
|
|
typedef enum WrapMode WrapMode;
|
2007-08-01 04:15:29 +02:00
|
|
|
typedef enum MetafileType MetafileType;
|
2007-08-08 03:43:00 +02:00
|
|
|
typedef enum LinearGradientMode LinearGradientMode;
|
2007-08-10 03:25:37 +02:00
|
|
|
typedef enum EmfType EmfType;
|
2007-08-14 03:34:27 +02:00
|
|
|
typedef enum CompositingMode CompositingMode;
|
2007-08-15 04:00:09 +02:00
|
|
|
typedef enum TextRenderingHint TextRenderingHint;
|
2007-08-15 04:00:32 +02:00
|
|
|
typedef enum StringAlignment StringAlignment;
|
2008-07-28 23:12:49 +02:00
|
|
|
typedef enum StringDigitSubstitute StringDigitSubstitute;
|
2007-08-15 04:00:40 +02:00
|
|
|
typedef enum StringTrimming StringTrimming;
|
2008-06-21 19:02:53 +02:00
|
|
|
typedef enum FontStyle FontStyle;
|
2007-08-15 04:00:40 +02:00
|
|
|
typedef enum StringFormatFlags StringFormatFlags;
|
2007-08-15 04:00:53 +02:00
|
|
|
typedef enum HotkeyPrefix HotkeyPrefix;
|
2008-01-30 05:46:25 +01:00
|
|
|
typedef enum PenAlignment GpPenAlignment;
|
2008-03-06 10:17:00 +01:00
|
|
|
typedef enum ImageCodecFlags ImageCodecFlags;
|
2008-04-08 23:44:41 +02:00
|
|
|
typedef enum CombineMode CombineMode;
|
2008-06-18 09:33:10 +02:00
|
|
|
typedef enum FlushIntention FlushIntention;
|
2008-07-10 16:26:58 +02:00
|
|
|
typedef enum CoordinateSpace CoordinateSpace;
|
2008-09-06 23:40:26 +02:00
|
|
|
typedef enum GpTestControlEnum GpTestControlEnum;
|
2008-10-03 12:56:40 +02:00
|
|
|
typedef enum MetafileFrameUnit MetafileFrameUnit;
|
2007-06-08 22:44:28 +02:00
|
|
|
|
|
|
|
#endif /* end of c typedefs */
|
|
|
|
|
|
|
|
#endif
|