mirror of
https://github.com/reactos/wine.git
synced 2024-12-07 03:17:17 +00:00
306 lines
7.6 KiB
C
306 lines
7.6 KiB
C
/*
|
|
* 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
|
|
|
|
typedef UINT GraphicsState;
|
|
|
|
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
|
|
};
|
|
|
|
enum FillMode
|
|
{
|
|
FillModeAlternate = 0,
|
|
FillModeWinding = 1
|
|
};
|
|
|
|
enum LineCap
|
|
{
|
|
LineCapFlat = 0x00,
|
|
LineCapSquare = 0x01,
|
|
LineCapRound = 0x02,
|
|
LineCapTriangle = 0x03,
|
|
|
|
LineCapNoAnchor = 0x10,
|
|
LineCapSquareAnchor = 0x11,
|
|
LineCapRoundAnchor = 0x12,
|
|
LineCapDiamondAnchor = 0x13,
|
|
LineCapArrowAnchor = 0x14,
|
|
|
|
LineCapCustom = 0xff,
|
|
LineCapAnchorMask = 0xf0
|
|
};
|
|
|
|
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
|
|
};
|
|
|
|
enum LineJoin
|
|
{
|
|
LineJoinMiter = 0,
|
|
LineJoinBevel = 1,
|
|
LineJoinRound = 2,
|
|
LineJoinMiterClipped = 3
|
|
};
|
|
|
|
enum QualityMode
|
|
{
|
|
QualityModeInvalid = -1,
|
|
QualityModeDefault = 0,
|
|
QualityModeLow = 1,
|
|
QualityModeHigh = 2
|
|
};
|
|
|
|
enum SmoothingMode
|
|
{
|
|
SmoothingModeInvalid = QualityModeInvalid,
|
|
SmoothingModeDefault = QualityModeDefault,
|
|
SmoothingModeHighSpeed = QualityModeLow,
|
|
SmoothingModeHighQuality = QualityModeHigh,
|
|
SmoothingModeNone,
|
|
SmoothingModeAntiAlias
|
|
};
|
|
|
|
enum CompositingQuality
|
|
{
|
|
CompositingQualityInvalid = QualityModeInvalid,
|
|
CompositingQualityDefault = QualityModeDefault,
|
|
CompositingQualityHighSpeed = QualityModeLow,
|
|
CompositingQualityHighQuality = QualityModeHigh,
|
|
CompositingQualityGammaCorrected,
|
|
CompositingQualityAssumeLinear
|
|
};
|
|
|
|
enum InterpolationMode
|
|
{
|
|
InterpolationModeInvalid = QualityModeInvalid,
|
|
InterpolationModeDefault = QualityModeDefault,
|
|
InterpolationModeLowQuality = QualityModeLow,
|
|
InterpolationModeHighQuality = QualityModeHigh,
|
|
InterpolationModeBilinear,
|
|
InterpolationModeBicubic,
|
|
InterpolationModeNearestNeighbor,
|
|
InterpolationModeHighQualityBilinear,
|
|
InterpolationModeHighQualityBicubic
|
|
};
|
|
|
|
enum PenAlignment
|
|
{
|
|
PenAlignmentCenter = 0,
|
|
PenAlignmentInset = 1
|
|
};
|
|
|
|
enum PixelOffsetMode
|
|
{
|
|
PixelOffsetModeInvalid = QualityModeInvalid,
|
|
PixelOffsetModeDefault = QualityModeDefault,
|
|
PixelOffsetModeHighSpeed = QualityModeLow,
|
|
PixelOffsetModeHighQuality = QualityModeHigh,
|
|
PixelOffsetModeNone,
|
|
PixelOffsetModeHalf
|
|
};
|
|
|
|
enum DashCap
|
|
{
|
|
DashCapFlat = 0,
|
|
DashCapRound = 2,
|
|
DashCapTriangle = 3
|
|
};
|
|
|
|
enum DashStyle
|
|
{
|
|
DashStyleSolid,
|
|
DashStyleDash,
|
|
DashStyleDot,
|
|
DashStyleDashDot,
|
|
DashStyleDashDotDot,
|
|
DashStyleCustom
|
|
};
|
|
|
|
enum MatrixOrder
|
|
{
|
|
MatrixOrderPrepend = 0,
|
|
MatrixOrderAppend = 1
|
|
};
|
|
|
|
enum ImageType
|
|
{
|
|
ImageTypeUnknown,
|
|
ImageTypeBitmap,
|
|
ImageTypeMetafile
|
|
};
|
|
|
|
enum WrapMode
|
|
{
|
|
WrapModeTile,
|
|
WrapModeTileFlipX,
|
|
WrapModeTileFlipY,
|
|
WrapModeTileFlipXY,
|
|
WrapModeClamp
|
|
};
|
|
|
|
enum MetafileType
|
|
{
|
|
MetafileTypeInvalid,
|
|
MetafileTypeWmf,
|
|
MetafileTypeWmfPlaceable,
|
|
MetafileTypeEmf,
|
|
MetafileTypeEmfPlusOnly,
|
|
MetafileTypeEmfPlusDual
|
|
};
|
|
|
|
enum LinearGradientMode
|
|
{
|
|
LinearGradientModeHorizontal,
|
|
LinearGradientModeVertical,
|
|
LinearGradientModeForwardDiagonal,
|
|
LinearGradientModeBackwardDiagonal
|
|
};
|
|
|
|
enum EmfType
|
|
{
|
|
EmfTypeEmfOnly = MetafileTypeEmf,
|
|
EmfTypeEmfPlusOnly = MetafileTypeEmfPlusOnly,
|
|
EmfTypeEmfPlusDual = MetafileTypeEmfPlusDual
|
|
};
|
|
|
|
enum CompositingMode
|
|
{
|
|
CompositingModeSourceOver,
|
|
CompositingModeSourceCopy
|
|
};
|
|
|
|
enum TextRenderingHint
|
|
{
|
|
TextRenderingHintSystemDefault = 0,
|
|
TextRenderingHintSingleBitPerPixelGridFit,
|
|
TextRenderingHintSingleBitPerPixel,
|
|
TextRenderingHintAntiAliasGridFit,
|
|
TextRenderingHintAntiAlias,
|
|
TextRenderingHintClearTypeGridFit
|
|
};
|
|
|
|
enum StringAlignment
|
|
{
|
|
StringAlignmentNear = 0,
|
|
StringAlignmentCenter = 1,
|
|
StringAlignmentFar = 2
|
|
};
|
|
|
|
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
|
|
};
|
|
|
|
enum HotkeyPrefix
|
|
{
|
|
HotkeyPrefixNone = 0,
|
|
HotkeyPrefixShow = 1,
|
|
HotkeyPrefixHide = 2
|
|
};
|
|
|
|
enum ImageCodecFlags
|
|
{
|
|
ImageCodecFlagsEncoder = 1,
|
|
ImageCodecFlagsDecoder = 2,
|
|
ImageCodecFlagsSupportBitmap = 4,
|
|
ImageCodecFlagsSupportVector = 8,
|
|
ImageCodecFlagsSeekableEncode = 16,
|
|
ImageCodecFlagsBlockingDecode = 32,
|
|
ImageCodecFlagsBuiltin = 65536,
|
|
ImageCodecFlagsSystem = 131072,
|
|
ImageCodecFlagsUser = 262144
|
|
};
|
|
|
|
#ifndef __cplusplus
|
|
|
|
typedef enum Unit Unit;
|
|
typedef enum BrushType BrushType;
|
|
typedef enum FillMode FillMode;
|
|
typedef enum LineCap LineCap;
|
|
typedef enum PathPointType PathPointType;
|
|
typedef enum LineJoin LineJoin;
|
|
typedef enum QualityMode QualityMode;
|
|
typedef enum SmoothingMode SmoothingMode;
|
|
typedef enum CompositingQuality CompositingQuality;
|
|
typedef enum InterpolationMode InterpolationMode;
|
|
typedef enum PixelOffsetMode PixelOffsetMode;
|
|
typedef enum DashCap DashCap;
|
|
typedef enum DashStyle DashStyle;
|
|
typedef enum MatrixOrder MatrixOrder;
|
|
typedef enum ImageType ImageType;
|
|
typedef enum WrapMode WrapMode;
|
|
typedef enum MetafileType MetafileType;
|
|
typedef enum LinearGradientMode LinearGradientMode;
|
|
typedef enum EmfType EmfType;
|
|
typedef enum CompositingMode CompositingMode;
|
|
typedef enum TextRenderingHint TextRenderingHint;
|
|
typedef enum StringAlignment StringAlignment;
|
|
typedef enum StringTrimming StringTrimming;
|
|
typedef enum StringFormatFlags StringFormatFlags;
|
|
typedef enum HotkeyPrefix HotkeyPrefix;
|
|
typedef enum PenAlignment GpPenAlignment;
|
|
typedef enum ImageCodecFlags ImageCodecFlags;
|
|
|
|
#endif /* end of c typedefs */
|
|
|
|
#endif
|