Commit 9a9c857b authored by Evan Stade's avatar Evan Stade Committed by Alexandre Julliard

gdiplus: Added GdipG/SetPathGradientCenterPoint.

parent 7929ba8d
...@@ -114,6 +114,8 @@ GpStatus WINGDIPAPI GdipCreatePathGradient(GDIPCONST GpPointF* points, ...@@ -114,6 +114,8 @@ GpStatus WINGDIPAPI GdipCreatePathGradient(GDIPCONST GpPointF* points,
(*grad)->centercolor = 0xffffffff; (*grad)->centercolor = 0xffffffff;
(*grad)->wrap = wrap; (*grad)->wrap = wrap;
(*grad)->gamma = FALSE; (*grad)->gamma = FALSE;
(*grad)->center.X = 0.0;
(*grad)->center.Y = 0.0;
return Ok; return Ok;
} }
...@@ -154,6 +156,9 @@ GpStatus WINGDIPAPI GdipCreatePathGradientFromPath(GDIPCONST GpPath* path, ...@@ -154,6 +156,9 @@ GpStatus WINGDIPAPI GdipCreatePathGradientFromPath(GDIPCONST GpPath* path,
(*grad)->centercolor = 0xffffffff; (*grad)->centercolor = 0xffffffff;
(*grad)->wrap = WrapModeClamp; (*grad)->wrap = WrapModeClamp;
(*grad)->gamma = FALSE; (*grad)->gamma = FALSE;
/* FIXME: this should be set to the "centroid" of the path by default */
(*grad)->center.X = 0.0;
(*grad)->center.Y = 0.0;
return Ok; return Ok;
} }
...@@ -208,6 +213,18 @@ GpStatus WINGDIPAPI GdipDeleteBrush(GpBrush *brush) ...@@ -208,6 +213,18 @@ GpStatus WINGDIPAPI GdipDeleteBrush(GpBrush *brush)
return Ok; return Ok;
} }
GpStatus WINGDIPAPI GdipGetPathGradientCenterPoint(GpPathGradient *grad,
GpPointF *point)
{
if(!grad || !point)
return InvalidParameter;
point->X = grad->center.X;
point->Y = grad->center.Y;
return Ok;
}
GpStatus WINGDIPAPI GdipGetPathGradientGammaCorrection(GpPathGradient *grad, GpStatus WINGDIPAPI GdipGetPathGradientGammaCorrection(GpPathGradient *grad,
BOOL *gamma) BOOL *gamma)
{ {
...@@ -269,6 +286,18 @@ GpStatus WINGDIPAPI GdipSetPathGradientCenterColor(GpPathGradient *grad, ...@@ -269,6 +286,18 @@ GpStatus WINGDIPAPI GdipSetPathGradientCenterColor(GpPathGradient *grad,
return Ok; return Ok;
} }
GpStatus WINGDIPAPI GdipSetPathGradientCenterPoint(GpPathGradient *grad,
GpPointF *point)
{
if(!grad || !point)
return InvalidParameter;
grad->center.X = point->X;
grad->center.Y = point->Y;
return Ok;
}
GpStatus WINGDIPAPI GdipSetPathGradientGammaCorrection(GpPathGradient *grad, GpStatus WINGDIPAPI GdipSetPathGradientGammaCorrection(GpPathGradient *grad,
BOOL gamma) BOOL gamma)
{ {
......
...@@ -328,7 +328,7 @@ ...@@ -328,7 +328,7 @@
@ stub GdipGetPathGradientBlend @ stub GdipGetPathGradientBlend
@ stub GdipGetPathGradientBlendCount @ stub GdipGetPathGradientBlendCount
@ stub GdipGetPathGradientCenterColor @ stub GdipGetPathGradientCenterColor
@ stub GdipGetPathGradientCenterPoint @ stdcall GdipGetPathGradientCenterPoint(ptr ptr)
@ stub GdipGetPathGradientCenterPointI @ stub GdipGetPathGradientCenterPointI
@ stub GdipGetPathGradientFocusScales @ stub GdipGetPathGradientFocusScales
@ stdcall GdipGetPathGradientGammaCorrection(ptr ptr) @ stdcall GdipGetPathGradientGammaCorrection(ptr ptr)
...@@ -550,7 +550,7 @@ ...@@ -550,7 +550,7 @@
@ stdcall GdipSetPathFillMode(ptr long) @ stdcall GdipSetPathFillMode(ptr long)
@ stub GdipSetPathGradientBlend @ stub GdipSetPathGradientBlend
@ stdcall GdipSetPathGradientCenterColor(ptr long) @ stdcall GdipSetPathGradientCenterColor(ptr long)
@ stub GdipSetPathGradientCenterPoint @ stdcall GdipSetPathGradientCenterPoint(ptr ptr)
@ stub GdipSetPathGradientCenterPointI @ stub GdipSetPathGradientCenterPointI
@ stub GdipSetPathGradientFocusScales @ stub GdipSetPathGradientFocusScales
@ stdcall GdipSetPathGradientGammaCorrection(ptr long) @ stdcall GdipSetPathGradientGammaCorrection(ptr long)
......
...@@ -98,6 +98,7 @@ struct GpPathGradient{ ...@@ -98,6 +98,7 @@ struct GpPathGradient{
ARGB centercolor; ARGB centercolor;
GpWrapMode wrap; GpWrapMode wrap;
BOOL gamma; BOOL gamma;
GpPointF center;
}; };
struct GpPath{ struct GpPath{
......
...@@ -94,6 +94,7 @@ GpStatus WINGDIPAPI GdipCreatePathGradientFromPath(GDIPCONST GpPath*, ...@@ -94,6 +94,7 @@ GpStatus WINGDIPAPI GdipCreatePathGradientFromPath(GDIPCONST GpPath*,
GpPathGradient**); GpPathGradient**);
GpStatus WINGDIPAPI GdipCreateSolidFill(ARGB,GpSolidFill**); GpStatus WINGDIPAPI GdipCreateSolidFill(ARGB,GpSolidFill**);
GpStatus WINGDIPAPI GdipGetBrushType(GpBrush*,GpBrushType*); GpStatus WINGDIPAPI GdipGetBrushType(GpBrush*,GpBrushType*);
GpStatus WINGDIPAPI GdipGetPathGradientCenterPoint(GpPathGradient*,GpPointF*);
GpStatus WINGDIPAPI GdipGetPathGradientGammaCorrection(GpPathGradient*,BOOL*); GpStatus WINGDIPAPI GdipGetPathGradientGammaCorrection(GpPathGradient*,BOOL*);
GpStatus WINGDIPAPI GdipGetPathGradientPointCount(GpPathGradient*,INT*); GpStatus WINGDIPAPI GdipGetPathGradientPointCount(GpPathGradient*,INT*);
GpStatus WINGDIPAPI GdipGetPathGradientSurroundColorsWithCount(GpPathGradient*, GpStatus WINGDIPAPI GdipGetPathGradientSurroundColorsWithCount(GpPathGradient*,
...@@ -101,6 +102,7 @@ GpStatus WINGDIPAPI GdipGetPathGradientSurroundColorsWithCount(GpPathGradient*, ...@@ -101,6 +102,7 @@ GpStatus WINGDIPAPI GdipGetPathGradientSurroundColorsWithCount(GpPathGradient*,
GpStatus WINGDIPAPI GdipDeleteBrush(GpBrush*); GpStatus WINGDIPAPI GdipDeleteBrush(GpBrush*);
GpStatus WINGDIPAPI GdipGetSolidFillColor(GpSolidFill*,ARGB*); GpStatus WINGDIPAPI GdipGetSolidFillColor(GpSolidFill*,ARGB*);
GpStatus WINGDIPAPI GdipSetPathGradientCenterColor(GpPathGradient*,ARGB); GpStatus WINGDIPAPI GdipSetPathGradientCenterColor(GpPathGradient*,ARGB);
GpStatus WINGDIPAPI GdipSetPathGradientCenterPoint(GpPathGradient*,GpPointF*);
GpStatus WINGDIPAPI GdipSetPathGradientGammaCorrection(GpPathGradient*,BOOL); GpStatus WINGDIPAPI GdipSetPathGradientGammaCorrection(GpPathGradient*,BOOL);
GpStatus WINGDIPAPI GdipSetPathGradientSigmaBlend(GpPathGradient*,REAL,REAL); GpStatus WINGDIPAPI GdipSetPathGradientSigmaBlend(GpPathGradient*,REAL,REAL);
GpStatus WINGDIPAPI GdipSetPathGradientSurroundColorsWithCount(GpPathGradient*, GpStatus WINGDIPAPI GdipSetPathGradientSurroundColorsWithCount(GpPathGradient*,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment