📄 gdiplusenums.h
字号:
// cells, and either the NoFitBlackBox flag
// has been set, or the glyph extends to far
// to be fitted.
// Pixels above/before the first line or
// below/after the last line may be affected
// if the glyphs extend beyond their cell
// ascent / descent. This can occur rarely
// with unusual diacritic mark combinations.
//---------------------------------------------------------------------------
enum StringFormatFlags
{
StringFormatFlagsDirectionRightToLeft = 0x00000001,
StringFormatFlagsDirectionVertical = 0x00000002,
StringFormatFlagsNoFitBlackBox = 0x00000004,
#ifndef DCR_USE_NEW_137252
StringFormatFlagsNumberContextArabic = 0x00000008,
StringFormatFlagsDisableKashidaJustification = 0x00000010,
#endif
StringFormatFlagsDisplayFormatControl = 0x00000020,
#ifndef DCR_USE_NEW_137252
StringFormatFlagsDisableKerning = 0x00000040,
StringFormatFlagsDisableLigatures = 0x00000080,
StringFormatFlagsLayoutLegacyBidi = 0x00000100,
StringFormatFlagsNoChanges = 0x00000200,
#endif
StringFormatFlagsNoFontFallback = 0x00000400,
StringFormatFlagsMeasureTrailingSpaces = 0x00000800,
StringFormatFlagsNoWrap = 0x00001000,
StringFormatFlagsLineLimit = 0x00002000,
StringFormatFlagsNoClip = 0x00004000
};
//---------------------------------------------------------------------------
// StringTrimming
//---------------------------------------------------------------------------
enum StringTrimming {
StringTrimmingNone = 0,
StringTrimmingCharacter = 1,
StringTrimmingWord = 2,
StringTrimmingEllipsisCharacter = 3,
StringTrimmingEllipsisWord = 4,
StringTrimmingEllipsisPath = 5
};
#ifndef DCR_USE_NEW_137252
//---------------------------------------------------------------------------
// String units
//
// String units are like length units in CSS, they may be absolute, or
// they may be relative to a font size.
//
//---------------------------------------------------------------------------
enum StringUnit {
StringUnitWorld = UnitWorld,
StringUnitDisplay = UnitDisplay,
StringUnitPixel = UnitPixel,
StringUnitPoint = UnitPoint,
StringUnitInch = UnitInch,
StringUnitDocument = UnitDocument,
StringUnitMillimeter = UnitMillimeter,
StringUnitEm = 32
};
#endif
#ifndef DCR_USE_NEW_152154
//---------------------------------------------------------------------------
// Line spacing flags
//---------------------------------------------------------------------------
enum LineSpacing {
LineSpacingWorld = UnitWorld,
LineSpacingDisplay = UnitDisplay,
LineSpacingPixel = UnitPixel,
LineSpacingPoint = UnitPoint,
LineSpacingInch = UnitInch,
LineSpacingDocument = UnitDocument,
LineSpacingMillimeter = UnitMillimeter,
LineSpacingRecommended = 32,
LineSpacingAtLeast = 33,
LineSpacingAtLeastMultiple = 34,
LineSpacingCell = 35,
LineSpacingCellAtLeast = 36,
LineSpacingCellAtLeastMultiple = 37
};
/// The following methods of linespacing are relative to the font size
//
// =========== Method =========== =============== Relative to ===============
//
// LineSpacingRecommended recommended line spacing specified by font
// LineSpacingAtLeast max(recommended, tallest glyph cell)
// LineSpacingAtLeastMultiple smallest multiple of recommended big enough
// for all glyph cells on the line
// LineSpacingCell cell height
// LineSpacingCellAtLeast max(font cell height, tallest glyph cell)
// LineSpacingCellAtLeastMultiple smallest multiple of cell height big enough
// for all glyph cells on the line
#endif
//---------------------------------------------------------------------------
// National language digit substitution
//---------------------------------------------------------------------------
enum StringDigitSubstitute
{
StringDigitSubstituteUser = 0, // As NLS setting
StringDigitSubstituteNone = 1,
StringDigitSubstituteNational = 2,
StringDigitSubstituteTraditional = 3
};
//---------------------------------------------------------------------------
// Hotkey prefix interpretation
//---------------------------------------------------------------------------
enum HotkeyPrefix
{
HotkeyPrefixNone = 0,
HotkeyPrefixShow = 1,
HotkeyPrefixHide = 2
};
//---------------------------------------------------------------------------
// Text alignment flags
//---------------------------------------------------------------------------
enum StringAlignment
{
// Left edge for left-to-right text,
// right for right-to-left text,
// and top for vertical
StringAlignmentNear = 0,
StringAlignmentCenter = 1,
StringAlignmentFar = 2
};
//---------------------------------------------------------------------------
// DriverStringOptions
//---------------------------------------------------------------------------
enum DriverStringOptions
{
DriverStringOptionsCmapLookup = 1,
DriverStringOptionsVertical = 2,
DriverStringOptionsRealizedAdvance = 4,
#ifndef DCR_USE_NEW_137252
DriverStringOptionsCompensateResolution = 8
#endif
};
//---------------------------------------------------------------------------
// Flush Intention flags
//---------------------------------------------------------------------------
enum FlushIntention
{
FlushIntentionFlush = 0, // Flush all batched rendering operations
FlushIntentionSync = 1 // Flush all batched rendering operations
// and wait for them to complete
};
#ifndef DCR_USE_NEW_175866
//---------------------------------------------------------------------------
// Window Change Notification types
//---------------------------------------------------------------------------
enum WindowNotifyEnum
{
WindowNotifyEnumEnable = 0,
WindowNotifyEnumDisable,
WindowNotifyEnumPalette,
WindowNotifyEnumDisplay,
WindowNotifyEnumSysColor
};
#endif
//---------------------------------------------------------------------------
// Image encoder parameter related types
//---------------------------------------------------------------------------
#ifdef DCR_USE_NEW_145804
enum EncoderParameterValueType
{
EncoderParameterValueTypeByte = 1, // 8-bit unsigned int
EncoderParameterValueTypeASCII = 2, // 8-bit byte containing one 7-bit ASCII
// code. NULL terminated.
EncoderParameterValueTypeShort = 3, // 16-bit unsigned int
EncoderParameterValueTypeLong = 4, // 32-bit unsigned int
EncoderParameterValueTypeRational = 5, // Two Longs. The first Long is the
// numerator, the second Long expresses the
// denomintor.
EncoderParameterValueTypeLongRange = 6, // Two longs which specify a range of
// integer values. The first Long specifies
// the lower end and the second one
// specifies the higher end. All values
// are inclusive at both ends
EncoderParameterValueTypeUndefined = 7, // 8-bit byte that can take any value
// depending on field definition
EncoderParameterValueTypeRationalRange = 8 // Two Rationals. The first Rational
// specifies the lower end and the second
// specifies the higher end. All values
// are inclusive at both ends
};
#else
enum ValueType
{
ValueTypeByte = 1, // 8-bit unsigned int
ValueTypeASCII = 2, // 8-bit byte containing one 7-bit ASCII
// code. NULL terminated.
ValueTypeShort = 3, // 16-bit unsigned int
ValueTypeLong = 4, // 32-bit unsigned int
ValueTypeRational = 5, // Two Longs. The first Long is the
// numerator, the second Long expresses the
// denomintor.
ValueTypeLongRange = 6, // Two longs which specify a range of
// integer values. The first Long specifies
// the lower end and the second one
// specifies the higher end. All values
// are inclusive at both ends
ValueTypeUndefined = 7, // 8-bit byte that can take any value
// depending on field definition
ValueTypeRationalRange = 8 // Two Rationals. The first Rational
// specifies the lower end and the second
// specifies the higher end. All values
// are inclusive at both ends
};
#endif
//---------------------------------------------------------------------------
// Image encoder value types
//---------------------------------------------------------------------------
enum EncoderValue
{
EncoderValueColorTypeCMYK,
EncoderValueColorTypeYCCK,
EncoderValueCompressionLZW,
EncoderValueCompressionCCITT3,
EncoderValueCompressionCCITT4,
EncoderValueCompressionRle,
EncoderValueCompressionNone,
EncoderValueScanMethodInterlaced,
EncoderValueScanMethodNonInterlaced,
EncoderValueVersionGif87,
EncoderValueVersionGif89,
EncoderValueRenderProgressive,
EncoderValueRenderNonProgressive,
EncoderValueTransformRotate90,
EncoderValueTransformRotate180,
EncoderValueTransformRotate270,
EncoderValueTransformFlipHorizontal,
EncoderValueTransformFlipVertical,
#ifdef DCR_USE_NEW_140861
EncoderValueMultiFrame,
#else
EncodeValueMultiFrame,
#endif
EncoderValueLastFrame,
EncoderValueFlush,
#ifdef DCR_USE_NEW_140861
EncoderValueFrameDimensionTime,
EncoderValueFrameDimensionResolution,
EncoderValueFrameDimensionPage
#else
EncodeValueFrameDimensionTime,
EncodeValueFrameDimensionResolution,
EncodeValueFrameDimensionPage
#endif
};
//---------------------------------------------------------------------------
// Graphics layout values (support for Middle East localization)
//---------------------------------------------------------------------------
enum GraphicsLayout
{
GraphicsLayoutNormal,
GraphicsLayoutMirrored,
GraphicsLayoutMirroredIgnoreImages,
GraphicsLayoutMirroredForceImages
};
//---------------------------------------------------------------------------
// Image layout values (support for Middle East localization)
//---------------------------------------------------------------------------
enum ImageLayout
{
ImageLayoutNormal,
ImageLayoutIgnoreMirrored
};
enum EmfToWmfBitsFlags
{
EmfToWmfBitsFlagsDefault = 0x00000000,
EmfToWmfBitsFlagsEmbedEmf = 0x00000001,
EmfToWmfBitsFlagsIncludeAPM = 0x00000002,
EmfToWmfBitsFlagsNoXORClip = 0x00000004
};
#endif // !_GDIPLUSENUMS_H
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -