gdiplus: C++ fixes for headers.

This commit is contained in:
Iain Arnell 2011-02-01 08:49:46 +01:00 committed by Alexandre Julliard
parent 8a38fbcacc
commit aef85c72c8
3 changed files with 28 additions and 1 deletions

View File

@ -734,7 +734,7 @@ typedef enum StringTrimming StringTrimming;
typedef enum FontStyle FontStyle; typedef enum FontStyle FontStyle;
typedef enum StringFormatFlags StringFormatFlags; typedef enum StringFormatFlags StringFormatFlags;
typedef enum HotkeyPrefix HotkeyPrefix; typedef enum HotkeyPrefix HotkeyPrefix;
typedef enum PenAlignment GpPenAlignment; typedef enum PenAlignment PenAlignment;
typedef enum PaletteFlags PaletteFlags; typedef enum PaletteFlags PaletteFlags;
typedef enum ImageCodecFlags ImageCodecFlags; typedef enum ImageCodecFlags ImageCodecFlags;
typedef enum CombineMode CombineMode; typedef enum CombineMode CombineMode;

View File

@ -22,6 +22,7 @@
#ifdef __cplusplus #ifdef __cplusplus
class GpGraphics {}; class GpGraphics {};
class GpPen {};
class GpBrush {}; class GpBrush {};
class GpHatch : public GpBrush {}; class GpHatch : public GpBrush {};
class GpSolidFill : public GpBrush {}; class GpSolidFill : public GpBrush {};
@ -92,6 +93,7 @@ typedef WrapMode GpWrapMode;
typedef Color GpColor; typedef Color GpColor;
typedef FlushIntention GpFlushIntention; typedef FlushIntention GpFlushIntention;
typedef CoordinateSpace GpCoordinateSpace; typedef CoordinateSpace GpCoordinateSpace;
typedef PenAlignment GpPenAlignment;
typedef PenType GpPenType; typedef PenType GpPenType;
#endif #endif

View File

@ -199,6 +199,31 @@ public:
INT Height; INT Height;
}; };
class CharacterRange
{
public:
CharacterRange()
{
First = Length = 0;
}
CharacterRange(INT first, INT length)
{
First = first;
Length = length;
}
CharacterRange& operator=(const CharacterRange& rhs)
{
First = rhs.First;
Length = rhs.Length;
return *this;
}
public:
INT First;
INT Length;
};
#else /* end of c++ typedefs */ #else /* end of c++ typedefs */
typedef struct Point typedef struct Point