gdiplus: Added GdipSetPathGradientWrapMode.

oldstable
Evan Stade 2007-08-01 17:56:10 -07:00 committed by Alexandre Julliard
parent f2cf5551db
commit f0dbfe959f
5 changed files with 16 additions and 1 deletions

View File

@ -67,6 +67,7 @@ GpStatus WINGDIPAPI GdipCreatePathGradientFromPath(GDIPCONST GpPath* path,
(*grad)->brush.gdibrush = CreateSolidBrush(col);
(*grad)->brush.bt = BrushTypeSolidColor;
(*grad)->centercolor = 0xffffffff;
(*grad)->wrap = WrapModeClamp;
return Ok;
}
@ -135,6 +136,17 @@ GpStatus WINGDIPAPI GdipSetPathGradientCenterColor(GpPathGradient *grad,
return Ok;
}
GpStatus WINGDIPAPI GdipSetPathGradientWrapMode(GpPathGradient *grad,
GpWrapMode wrap)
{
if(!grad)
return InvalidParameter;
grad->wrap = wrap;
return Ok;
}
GpStatus WINGDIPAPI GdipSetSolidFillColor(GpSolidFill *sf, ARGB argb)
{
if(!sf)

View File

@ -560,7 +560,7 @@
@ stub GdipSetPathGradientSigmaBlend
@ stub GdipSetPathGradientSurroundColorsWithCount
@ stub GdipSetPathGradientTransform
@ stub GdipSetPathGradientWrapMode
@ stdcall GdipSetPathGradientWrapMode(ptr long)
@ stub GdipSetPathMarker
@ stdcall GdipSetPenBrushFill(ptr ptr)
@ stdcall GdipSetPenColor(ptr long)

View File

@ -95,6 +95,7 @@ struct GpSolidFill{
struct GpPathGradient{
GpBrush brush;
ARGB centercolor;
GpWrapMode wrap;
};
struct GpPath{

View File

@ -95,6 +95,7 @@ GpStatus WINGDIPAPI GdipGetBrushType(GpBrush*,GpBrushType*);
GpStatus WINGDIPAPI GdipDeleteBrush(GpBrush*);
GpStatus WINGDIPAPI GdipGetSolidFillColor(GpSolidFill*,ARGB*);
GpStatus WINGDIPAPI GdipSetPathGradientCenterColor(GpPathGradient*,ARGB);
GpStatus WINGDIPAPI GdipSetPathGradientWrapMode(GpPathGradient*,GpWrapMode);
GpStatus WINGDIPAPI GdipSetSolidFillColor(GpSolidFill*,ARGB);
GpStatus WINGDIPAPI GdipAddPathArc(GpPath*,REAL,REAL,REAL,REAL,REAL,REAL);

View File

@ -66,5 +66,6 @@ typedef DashCap GpDashCap;
typedef DashStyle GpDashStyle;
typedef MatrixOrder GpMatrixOrder;
typedef Point GpPoint;
typedef WrapMode GpWrapMode;
#endif