Commit 496c319c authored by Evan Stade's avatar Evan Stade Committed by Alexandre Julliard

gdiplus: Added GdipG/SetPathGradientFocusScales.

parent 9a9c857b
...@@ -116,6 +116,8 @@ GpStatus WINGDIPAPI GdipCreatePathGradient(GDIPCONST GpPointF* points, ...@@ -116,6 +116,8 @@ GpStatus WINGDIPAPI GdipCreatePathGradient(GDIPCONST GpPointF* points,
(*grad)->gamma = FALSE; (*grad)->gamma = FALSE;
(*grad)->center.X = 0.0; (*grad)->center.X = 0.0;
(*grad)->center.Y = 0.0; (*grad)->center.Y = 0.0;
(*grad)->focus.X = 0.0;
(*grad)->focus.Y = 0.0;
return Ok; return Ok;
} }
...@@ -159,6 +161,8 @@ GpStatus WINGDIPAPI GdipCreatePathGradientFromPath(GDIPCONST GpPath* path, ...@@ -159,6 +161,8 @@ GpStatus WINGDIPAPI GdipCreatePathGradientFromPath(GDIPCONST GpPath* path,
/* FIXME: this should be set to the "centroid" of the path by default */ /* FIXME: this should be set to the "centroid" of the path by default */
(*grad)->center.X = 0.0; (*grad)->center.X = 0.0;
(*grad)->center.Y = 0.0; (*grad)->center.Y = 0.0;
(*grad)->focus.X = 0.0;
(*grad)->focus.Y = 0.0;
return Ok; return Ok;
} }
...@@ -225,6 +229,18 @@ GpStatus WINGDIPAPI GdipGetPathGradientCenterPoint(GpPathGradient *grad, ...@@ -225,6 +229,18 @@ GpStatus WINGDIPAPI GdipGetPathGradientCenterPoint(GpPathGradient *grad,
return Ok; return Ok;
} }
GpStatus WINGDIPAPI GdipGetPathGradientFocusScales(GpPathGradient *grad,
REAL *x, REAL *y)
{
if(!grad || !x || !y)
return InvalidParameter;
*x = grad->focus.X;
*y = grad->focus.Y;
return Ok;
}
GpStatus WINGDIPAPI GdipGetPathGradientGammaCorrection(GpPathGradient *grad, GpStatus WINGDIPAPI GdipGetPathGradientGammaCorrection(GpPathGradient *grad,
BOOL *gamma) BOOL *gamma)
{ {
...@@ -298,6 +314,18 @@ GpStatus WINGDIPAPI GdipSetPathGradientCenterPoint(GpPathGradient *grad, ...@@ -298,6 +314,18 @@ GpStatus WINGDIPAPI GdipSetPathGradientCenterPoint(GpPathGradient *grad,
return Ok; return Ok;
} }
GpStatus WINGDIPAPI GdipSetPathGradientFocusScales(GpPathGradient *grad,
REAL x, REAL y)
{
if(!grad)
return InvalidParameter;
grad->focus.X = x;
grad->focus.Y = y;
return Ok;
}
GpStatus WINGDIPAPI GdipSetPathGradientGammaCorrection(GpPathGradient *grad, GpStatus WINGDIPAPI GdipSetPathGradientGammaCorrection(GpPathGradient *grad,
BOOL gamma) BOOL gamma)
{ {
......
...@@ -330,7 +330,7 @@ ...@@ -330,7 +330,7 @@
@ stub GdipGetPathGradientCenterColor @ stub GdipGetPathGradientCenterColor
@ stdcall GdipGetPathGradientCenterPoint(ptr ptr) @ stdcall GdipGetPathGradientCenterPoint(ptr ptr)
@ stub GdipGetPathGradientCenterPointI @ stub GdipGetPathGradientCenterPointI
@ stub GdipGetPathGradientFocusScales @ stdcall GdipGetPathGradientFocusScales(ptr ptr ptr)
@ stdcall GdipGetPathGradientGammaCorrection(ptr ptr) @ stdcall GdipGetPathGradientGammaCorrection(ptr ptr)
@ stub GdipGetPathGradientPath @ stub GdipGetPathGradientPath
@ stdcall GdipGetPathGradientPointCount(ptr ptr) @ stdcall GdipGetPathGradientPointCount(ptr ptr)
...@@ -552,7 +552,7 @@ ...@@ -552,7 +552,7 @@
@ stdcall GdipSetPathGradientCenterColor(ptr long) @ stdcall GdipSetPathGradientCenterColor(ptr long)
@ stdcall GdipSetPathGradientCenterPoint(ptr ptr) @ stdcall GdipSetPathGradientCenterPoint(ptr ptr)
@ stub GdipSetPathGradientCenterPointI @ stub GdipSetPathGradientCenterPointI
@ stub GdipSetPathGradientFocusScales @ stdcall GdipSetPathGradientFocusScales(ptr long long)
@ stdcall GdipSetPathGradientGammaCorrection(ptr long) @ stdcall GdipSetPathGradientGammaCorrection(ptr long)
@ stub GdipSetPathGradientLinearBlend @ stub GdipSetPathGradientLinearBlend
@ stub GdipSetPathGradientPath @ stub GdipSetPathGradientPath
......
...@@ -99,6 +99,7 @@ struct GpPathGradient{ ...@@ -99,6 +99,7 @@ struct GpPathGradient{
GpWrapMode wrap; GpWrapMode wrap;
BOOL gamma; BOOL gamma;
GpPointF center; GpPointF center;
GpPointF focus;
}; };
struct GpPath{ struct GpPath{
......
...@@ -95,6 +95,7 @@ GpStatus WINGDIPAPI GdipCreatePathGradientFromPath(GDIPCONST GpPath*, ...@@ -95,6 +95,7 @@ GpStatus WINGDIPAPI GdipCreatePathGradientFromPath(GDIPCONST GpPath*,
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 GdipGetPathGradientCenterPoint(GpPathGradient*,GpPointF*);
GpStatus WINGDIPAPI GdipGetPathGradientFocusScales(GpPathGradient*,REAL*,REAL*);
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*,
...@@ -103,6 +104,7 @@ GpStatus WINGDIPAPI GdipDeleteBrush(GpBrush*); ...@@ -103,6 +104,7 @@ 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 GdipSetPathGradientCenterPoint(GpPathGradient*,GpPointF*);
GpStatus WINGDIPAPI GdipSetPathGradientFocusScales(GpPathGradient*,REAL,REAL);
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