gdiplus: Added GdipSetPenLineCap197819.

This commit is contained in:
Evan Stade 2007-07-16 19:44:50 -07:00 committed by Alexandre Julliard
parent f2ae31000b
commit 6893ef397b
6 changed files with 27 additions and 1 deletions

View file

@ -551,7 +551,7 @@
@ stub GdipSetPenDashOffset
@ stub GdipSetPenDashStyle
@ stdcall GdipSetPenEndCap(ptr long)
@ stub GdipSetPenLineCap197819
@ stdcall GdipSetPenLineCap197819(ptr long long long)
@ stub GdipSetPenLineJoin
@ stub GdipSetPenMiterLimit
@ stub GdipSetPenMode

View file

@ -47,6 +47,8 @@ struct GpPen{
REAL width;
HPEN gdipen;
GpLineCap endcap;
GpLineCap startcap;
GpDashCap dashcap;
GpLineJoin join;
REAL miterlimit;
};

View file

@ -100,6 +100,20 @@ GpStatus WINGDIPAPI GdipSetPenEndCap(GpPen *pen, GpLineCap cap)
return Ok;
}
/* FIXME: startcap, dashcap not used. */
GpStatus WINGDIPAPI GdipSetPenLineCap197819(GpPen *pen, GpLineCap start,
GpLineCap end, GpDashCap dash)
{
if(!pen)
return InvalidParameter;
pen->startcap = start;
pen->endcap = end;
pen->dashcap = dash;
return Ok;
}
/* FIXME: Miter line joins behave a bit differently than they do in windows.
* Both kinds of miter joins clip if the angle is less than 11 degrees. */
GpStatus WINGDIPAPI GdipSetPenLineJoin(GpPen *pen, GpLineJoin join)

View file

@ -134,6 +134,13 @@ enum PixelOffsetMode
PixelOffsetModeHalf
};
enum DashCap
{
DashCapFlat = 0,
DashCapRound = 2,
DashCapTriangle = 3
};
#ifndef __cplusplus
typedef enum Unit Unit;
@ -147,6 +154,7 @@ typedef enum SmoothingMode SmoothingMode;
typedef enum CompositingQuality CompositingQuality;
typedef enum InterpolationMode InterpolationMode;
typedef enum PixelOffsetMode PixelOffsetMode;
typedef enum DashCap DashCap;
#endif /* end of c typedefs */

View file

@ -30,6 +30,7 @@ extern "C" {
GpStatus WINGDIPAPI GdipCreatePen1(ARGB,REAL,GpUnit,GpPen**);
GpStatus WINGDIPAPI GdipDeletePen(GpPen*);
GpStatus WINGDIPAPI GdipSetPenEndCap(GpPen*,GpLineCap);
GpStatus WINGDIPAPI GdipSetPenLineCap197819(GpPen*,GpLineCap,GpLineCap,GpDashCap);
GpStatus WINGDIPAPI GdipSetPenLineJoin(GpPen*,GpLineJoin);
GpStatus WINGDIPAPI GdipCreateFromHDC(HDC,GpGraphics**);

View file

@ -48,5 +48,6 @@ typedef PathData GpPathData;
typedef LineCap GpLineCap;
typedef RectF GpRectF;
typedef LineJoin GpLineJoin;
typedef DashCap GpDashCap;
#endif