19#ifndef _GDIPLUSBRUSH_H
20#define _GDIPLUSBRUSH_H
44 DllExports::GdipDeleteBrush(brush);
111 lastStatus = DllExports::GdipCreateHatchBrush(hatchStyle, foreColor.GetValue(), backColor.GetValue(), &brush);
123 SetStatus(DllExports::GdipGetHatchBackgroundColor(hatch, &argb));
125 color->SetValue(argb);
137 SetStatus(DllExports::GdipGetHatchForegroundColor(hatch, &argb));
139 color->SetValue(argb);
148 SetStatus(DllExports::GdipGetHatchStyle(hatch, &hatchStyle));
173 &point1, &point2, color1.GetValue(), color2.GetValue(),
WrapModeTile, &brush);
185 lastStatus = DllExports::GdipCreateLineBrushFromRectWithAngleI(
193 lastStatus = DllExports::GdipCreateLineBrushFromRectI(
201 lastStatus = DllExports::GdipCreateLineBrushI(
202 &point1, &point2, color1.GetValue(), color2.GetValue(),
WrapModeTile, &brush);
214 lastStatus = DllExports::GdipCreateLineBrushFromRectWithAngle(
222 lastStatus = DllExports::GdipCreateLineBrushFromRect(
231 return SetStatus(DllExports::GdipGetLineBlend(gradient, blendFactors, blendPositions,
count));
246 BOOL useGammaCorrection;
248 SetStatus(DllExports::GdipGetLineGammaCorrection(gradient, &useGammaCorrection));
249 return useGammaCorrection;
257 SetStatus(DllExports::GdipGetLinePresetBlendCount(gradient, &
count));
276 SetStatus(DllExports::GdipGetLineColors(gradient, argb));
279 colors[0] =
Color(argb[0]);
280 colors[1] =
Color(argb[1]);
289 return SetStatus(DllExports::GdipGetLineRectI(gradient,
rect));
296 return SetStatus(DllExports::GdipGetLineRect(gradient,
rect));
312 SetStatus(DllExports::GdipGetLineWrapMode(gradient, &wrapMode));
327 return SetStatus(DllExports::GdipResetLineTransform(gradient));
341 return SetStatus(DllExports::GdipScaleLineTransform(gradient, sx, sy,
order));
348 return SetStatus(DllExports::GdipSetLineBlend(gradient, blendFactors, blendPositions,
count));
355 return SetStatus(DllExports::GdipSetLineSigmaBlend(gradient, focus,
scale));
362 return SetStatus(DllExports::GdipSetLineLinearBlend(gradient, focus,
scale));
369 return SetStatus(DllExports::GdipSetLineGammaCorrection(gradient, useGammaCorrection));
382 return SetStatus(DllExports::GdipSetLineColors(gradient, color1.GetValue(), color2.GetValue()));
396 return SetStatus(DllExports::GdipSetLineWrapMode(gradient, wrapMode));
413 return SetStatus(DllExports::GdipSetLinePoints(gradient, &point1, &point2));
435 return SetStatus(DllExports::GdipSetLinePointsI(gradient, &point1, &point2));
466 lastStatus = DllExports::GdipCreateSolidFill(
color.GetValue(), &brush);
_STLP_MOVE_TO_STD_NAMESPACE void fill(_ForwardIter __first, _ForwardIter __last, const _Tp &__val)
Status SetStatus(Status status) const
friend GpBrush *& getNat(const Brush *brush)
Status GetLastStatus() const
BrushType GetType() const
Brush(GpBrush *brush, Status status)
Brush & operator=(const Brush &)
void SetNativeBrush(GpBrush *brush)
HatchStyle GetHatchStyle() const
Status GetBackgroundColor(Color *color) const
GpHatch * GetNativeHatch() const
HatchBrush(HatchStyle hatchStyle, const Color &foreColor, const Color &backColor)
Status GetForegroundColor(Color *color) const
Status SetLinearPoints(const Point &point1, const Point &point2)
Status SetTransform(const Matrix *matrix)
INT GetInterpolationColorCount() const
LinearGradientBrush(const PointF &point1, const PointF &point2, const Color &color1, const Color &color2)
BOOL GetGammaCorrection() const
Status SetLinearPoints(const PointF &point1, const PointF &point2)
Status SetInterpolationColors(const Color *presetColors, const REAL *blendPositions, INT count)
Status GetLinearPoints(Point *points) const
Status SetBlendBellShape(REAL focus, REAL scale)
LinearGradientBrush(const Point &point1, const Point &point2, const Color &color1, const Color &color2)
Status TranslateTransform(REAL dx, REAL dy, MatrixOrder order=MatrixOrderPrepend)
GpLineGradient * GetNativeGradient() const
Status RotateTransform(REAL angle, MatrixOrder order)
WrapMode GetWrapMode() const
Status GetRectangle(Rect *rect) const
Status GetLinearPoints(PointF *points) const
Status SetBlend(const REAL *blendFactors, const REAL *blendPositions, INT count)
Status SetGammaCorrection(BOOL useGammaCorrection)
Status SetBlendTriangularShape(REAL focus, REAL scale=1.0f)
LinearGradientBrush(const RectF &rect, const Color &color1, const Color &color2, REAL angle, BOOL isAngleScalable=FALSE)
INT GetBlendCount() const
Status MultiplyTransform(const Matrix *matrix, MatrixOrder order)
Status SetWrapMode(WrapMode wrapMode)
LinearGradientBrush(const Rect &rect, const Color &color1, const Color &color2, LinearGradientMode mode)
Status GetInterpolationColors(Color *presetColors, REAL *blendPositions, INT count) const
LinearGradientBrush(const RectF &rect, const Color &color1, const Color &color2, LinearGradientMode mode)
Status ScaleTransform(REAL sx, REAL sy, MatrixOrder order=MatrixOrderPrepend)
Status GetLinearColors(Color *colors) const
Status GetTransform(Matrix *matrix) const
Status SetLinearColors(const Color &color1, const Color &color2)
LinearGradientBrush(const Rect &rect, const Color &color1, const Color &color2, REAL angle, BOOL isAngleScalable=FALSE)
Status GetBlend(REAL *blendFactors, REAL *blendPositions, INT count)
Status GetRectangle(RectF *rect) const
GpSolidFill * GetNativeFill() const
Status SetColor(const Color &color)
SolidBrush(const Color &color)
Status GetColor(Color *color) const
Status RotateTransform(REAL angle, MatrixOrder order)
Status SetWrapMode(WrapMode wrapMode)
Status MultiplyTransform(Matrix *matrix, MatrixOrder order=MatrixOrderPrepend)
TextureBrush(Image *image, WrapMode wrapMode, REAL dstX, REAL dstY, REAL dstWidth, REAL dstHeight)
Status ScaleTransform(REAL sx, REAL sy, MatrixOrder order)
Status TranslateTransform(REAL dx, REAL dy, MatrixOrder order)
TextureBrush(Image *image, WrapMode wrapMode, const RectF &dstRect)
TextureBrush(Image *image, Rect &dstRect, ImageAttributes *imageAttributes)
WrapMode GetWrapMode() const
GpTexture * GetNativeTexture() const
Status SetTransform(const Matrix *matrix)
Status GetTransform(Matrix *matrix) const
TextureBrush(Image *image, WrapMode wrapMode)
TextureBrush(Image *image, WrapMode wrapMode, INT dstX, INT dstY, INT dstWidth, INT dstHeight)
TextureBrush(Image *image, WrapMode wrapMode, const Rect &dstRect)
TextureBrush(Image *image, RectF &dstRect, ImageAttributes *imageAttributes)
GLuint GLuint GLsizei GLenum type
GLuint GLuint GLsizei count
GLenum GLint GLint GLint GLint GLuint GLenum GLint GLint GLint dstY
GLenum GLenum GLenum GLenum GLenum scale
GLenum GLint GLint GLint GLint GLuint GLenum GLint GLint dstX
GLuint GLdouble GLdouble GLint GLint order
GLsizei const GLfloat * points