mirror of
https://github.com/reactos/wine.git
synced 2024-11-25 04:39:45 +00:00
gdiplus: Added GdipCreateLineBrushFromRectI.
This commit is contained in:
parent
ec3049168c
commit
d806c67821
@ -115,6 +115,23 @@ GpStatus WINGDIPAPI GdipCreateLineBrush(GDIPCONST GpPointF* startpoint,
|
||||
return Ok;
|
||||
}
|
||||
|
||||
GpStatus WINGDIPAPI GdipCreateLineBrushFromRectI(GDIPCONST GpRect* rect,
|
||||
ARGB startcolor, ARGB endcolor, LinearGradientMode mode, GpWrapMode wrap,
|
||||
GpLineGradient **line)
|
||||
{
|
||||
GpPointF start, end;
|
||||
|
||||
if(!line || !rect)
|
||||
return InvalidParameter;
|
||||
|
||||
start.X = (REAL) rect->X;
|
||||
start.Y = (REAL) rect->Y;
|
||||
end.X = (REAL) (rect->X + rect->Width);
|
||||
end.Y = (REAL) (rect->Y + rect->Height);
|
||||
|
||||
return GdipCreateLineBrush(&start, &end, startcolor, endcolor, wrap, line);
|
||||
}
|
||||
|
||||
GpStatus WINGDIPAPI GdipCreatePathGradient(GDIPCONST GpPointF* points,
|
||||
INT count, GpWrapMode wrap, GpPathGradient **grad)
|
||||
{
|
||||
|
@ -100,7 +100,7 @@
|
||||
@ stdcall GdipCreateImageAttributes(ptr)
|
||||
@ stdcall GdipCreateLineBrush(ptr ptr long long long ptr)
|
||||
@ stub GdipCreateLineBrushFromRect
|
||||
@ stub GdipCreateLineBrushFromRectI
|
||||
@ stdcall GdipCreateLineBrushFromRectI(ptr long long long long ptr)
|
||||
@ stub GdipCreateLineBrushFromRectWithAngle
|
||||
@ stub GdipCreateLineBrushFromRectWithAngleI
|
||||
@ stub GdipCreateLineBrushI
|
||||
|
@ -183,6 +183,14 @@ enum MetafileType
|
||||
MetafileTypeEmfPlusDual
|
||||
};
|
||||
|
||||
enum LinearGradientMode
|
||||
{
|
||||
LinearGradientModeHorizontal,
|
||||
LinearGradientModeVertical,
|
||||
LinearGradientModeForwardDiagonal,
|
||||
LinearGradientModeBackwardDiagonal
|
||||
};
|
||||
|
||||
#ifndef __cplusplus
|
||||
|
||||
typedef enum Unit Unit;
|
||||
@ -202,6 +210,7 @@ typedef enum MatrixOrder MatrixOrder;
|
||||
typedef enum ImageType ImageType;
|
||||
typedef enum WrapMode WrapMode;
|
||||
typedef enum MetafileType MetafileType;
|
||||
typedef enum LinearGradientMode LinearGradientMode;
|
||||
|
||||
#endif /* end of c typedefs */
|
||||
|
||||
|
@ -146,6 +146,8 @@ GpStatus WINGDIPAPI GdipStartPathFigure(GpPath*);
|
||||
GpStatus WINGDIPAPI GdipTransformPath(GpPath*,GpMatrix*);
|
||||
|
||||
GpStatus WINGDIPAPI GdipCloneMatrix(GpMatrix*,GpMatrix**);
|
||||
GpStatus WINGDIPAPI GdipCreateLineBrushFromRectI(GDIPCONST GpRect*,ARGB,ARGB,
|
||||
LinearGradientMode,GpWrapMode,GpLineGradient**);
|
||||
GpStatus WINGDIPAPI GdipCreateMatrix(GpMatrix**);
|
||||
GpStatus WINGDIPAPI GdipCreateMatrix2(REAL,REAL,REAL,REAL,REAL,REAL,GpMatrix**);
|
||||
GpStatus WINGDIPAPI GdipCreateMatrix3(GDIPCONST GpRectF *,GDIPCONST GpPointF*,
|
||||
|
Loading…
Reference in New Issue
Block a user