ReactOS  0.4.15-dev-499-g1f31905
LinearGradientBrush Class Reference

#include <gdiplusbrush.h>

Inheritance diagram for LinearGradientBrush:
Collaboration diagram for LinearGradientBrush:

Public Member Functions

 LinearGradientBrush (const PointF &point1, const PointF &point2, const Color &color1, const Color &color2)
 
 LinearGradientBrush (const Rect &rect, const Color &color1, const Color &color2, REAL angle, BOOL isAngleScalable=FALSE)
 
 LinearGradientBrush (const Rect &rect, const Color &color1, const Color &color2, LinearGradientMode mode)
 
 LinearGradientBrush (const Point &point1, const Point &point2, const Color &color1, const Color &color2)
 
 LinearGradientBrush (const RectF &rect, const Color &color1, const Color &color2, REAL angle, BOOL isAngleScalable=FALSE)
 
 LinearGradientBrush (const RectF &rect, const Color &color1, const Color &color2, LinearGradientMode mode)
 
Status GetBlend (REAL *blendFactors, REAL *blendPositions, INT count)
 
INT GetBlendCount () const
 
BOOL GetGammaCorrection () const
 
INT GetInterpolationColorCount () const
 
Status GetInterpolationColors (Color *presetColors, REAL *blendPositions, INT count) const
 
Status GetLinearColors (Color *colors) const
 
Status GetRectangle (Rect *rect) const
 
Status GetRectangle (RectF *rect) const
 
Status GetTransform (Matrix *matrix) const
 
WrapMode GetWrapMode () const
 
Status MultiplyTransform (const Matrix *matrix, MatrixOrder order)
 
Status ResetTransform ()
 
Status RotateTransform (REAL angle, MatrixOrder order)
 
Status ScaleTransform (REAL sx, REAL sy, MatrixOrder order=MatrixOrderPrepend)
 
Status SetBlend (const REAL *blendFactors, const REAL *blendPositions, INT count)
 
Status SetBlendBellShape (REAL focus, REAL scale)
 
Status SetBlendTriangularShape (REAL focus, REAL scale=1.0f)
 
Status SetGammaCorrection (BOOL useGammaCorrection)
 
Status SetInterpolationColors (const Color *presetColors, const REAL *blendPositions, INT count)
 
Status SetLinearColors (const Color &color1, const Color &color2)
 
Status SetTransform (const Matrix *matrix)
 
Status SetWrapMode (WrapMode wrapMode)
 
Status TranslateTransform (REAL dx, REAL dy, MatrixOrder order=MatrixOrderPrepend)
 
Status SetLinearPoints (const PointF &point1, const PointF &point2)
 
Status GetLinearPoints (PointF *points) const
 
Status SetLinearPoints (const Point &point1, const Point &point2)
 
Status GetLinearPoints (Point *points) const
 
- Public Member Functions inherited from Brush
virtual ~Brush ()
 
BrushClone () const
 
Status GetLastStatus () const
 
BrushType GetType () const
 
- Public Member Functions inherited from GdiplusBase
void operator delete (void *in_pVoid)
 
void operator delete[] (void *in_pVoid)
 
voidoperator new (size_t in_size)
 
voidoperator new[] (size_t in_size)
 

Protected Member Functions

GpLineGradientGetNativeGradient () const
 
- Protected Member Functions inherited from Brush
 Brush ()
 
 Brush (GpBrush *brush, Status status)
 
Status SetStatus (Status status) const
 
void SetNativeBrush (GpBrush *brush)
 

Friends

class Pen
 

Additional Inherited Members

- Protected Attributes inherited from Brush
GpBrushnativeBrush
 
Status lastStatus
 

Detailed Description

Definition at line 164 of file gdiplusbrush.h.

Constructor & Destructor Documentation

◆ LinearGradientBrush() [1/6]

LinearGradientBrush::LinearGradientBrush ( const PointF point1,
const PointF point2,
const Color color1,
const Color color2 
)
inline

Definition at line 169 of file gdiplusbrush.h.

170  {
171  GpLineGradient *brush = NULL;
173  &point1, &point2, color1.GetValue(), color2.GetValue(), WrapModeTile, &brush);
174  SetNativeBrush(brush);
175  }
void SetNativeBrush(GpBrush *brush)
Definition: gdiplusbrush.h:84
Status lastStatus
Definition: gdiplusbrush.h:65
GpStatus WINGDIPAPI GdipCreateLineBrush(GDIPCONST GpPointF *startpoint, GDIPCONST GpPointF *endpoint, ARGB startcolor, ARGB endcolor, GpWrapMode wrap, GpLineGradient **line)
Definition: brush.c:372
smooth NULL
Definition: ftsmooth.c:416

◆ LinearGradientBrush() [2/6]

LinearGradientBrush::LinearGradientBrush ( const Rect rect,
const Color color1,
const Color color2,
REAL  angle,
BOOL  isAngleScalable = FALSE 
)
inline

Definition at line 177 of file gdiplusbrush.h.

183  {
184  GpLineGradient *brush = NULL;
186  &rect, color1.GetValue(), color2.GetValue(), angle, isAngleScalable, WrapModeTile, &brush);
187  SetNativeBrush(brush);
188  }
void SetNativeBrush(GpBrush *brush)
Definition: gdiplusbrush.h:84
GpStatus WINGDIPAPI GdipCreateLineBrushFromRectWithAngleI(GDIPCONST GpRect *rect, ARGB startcolor, ARGB endcolor, REAL angle, BOOL isAngleScalable, GpWrapMode wrap, GpLineGradient **line)
Definition: brush.c:593
Status lastStatus
Definition: gdiplusbrush.h:65
GLfloat angle
Definition: glext.h:10853
& rect
Definition: startmenu.cpp:1413
smooth NULL
Definition: ftsmooth.c:416

◆ LinearGradientBrush() [3/6]

LinearGradientBrush::LinearGradientBrush ( const Rect rect,
const Color color1,
const Color color2,
LinearGradientMode  mode 
)
inline

Definition at line 190 of file gdiplusbrush.h.

191  {
192  GpLineGradient *brush = NULL;
194  &rect, color1.GetValue(), color2.GetValue(), mode, WrapModeTile, &brush);
195  SetNativeBrush(brush);
196  }
void SetNativeBrush(GpBrush *brush)
Definition: gdiplusbrush.h:84
Status lastStatus
Definition: gdiplusbrush.h:65
GpStatus WINGDIPAPI GdipCreateLineBrushFromRectI(GDIPCONST GpRect *rect, ARGB startcolor, ARGB endcolor, LinearGradientMode mode, GpWrapMode wrap, GpLineGradient **line)
Definition: brush.c:469
& rect
Definition: startmenu.cpp:1413
smooth NULL
Definition: ftsmooth.c:416
GLenum mode
Definition: glext.h:6217

◆ LinearGradientBrush() [4/6]

LinearGradientBrush::LinearGradientBrush ( const Point point1,
const Point point2,
const Color color1,
const Color color2 
)
inline

Definition at line 198 of file gdiplusbrush.h.

199  {
200  GpLineGradient *brush = NULL;
202  &point1, &point2, color1.GetValue(), color2.GetValue(), WrapModeTile, &brush);
203  SetNativeBrush(brush);
204  }
void SetNativeBrush(GpBrush *brush)
Definition: gdiplusbrush.h:84
GpStatus WINGDIPAPI GdipCreateLineBrushI(GDIPCONST GpPoint *startpoint, GDIPCONST GpPoint *endpoint, ARGB startcolor, ARGB endcolor, GpWrapMode wrap, GpLineGradient **line)
Definition: brush.c:415
Status lastStatus
Definition: gdiplusbrush.h:65
smooth NULL
Definition: ftsmooth.c:416

◆ LinearGradientBrush() [5/6]

LinearGradientBrush::LinearGradientBrush ( const RectF rect,
const Color color1,
const Color color2,
REAL  angle,
BOOL  isAngleScalable = FALSE 
)
inline

Definition at line 206 of file gdiplusbrush.h.

212  {
213  GpLineGradient *brush = NULL;
215  &rect, color1.GetValue(), color2.GetValue(), angle, isAngleScalable, WrapModeTile, &brush);
216  SetNativeBrush(brush);
217  }
void SetNativeBrush(GpBrush *brush)
Definition: gdiplusbrush.h:84
Status lastStatus
Definition: gdiplusbrush.h:65
GLfloat angle
Definition: glext.h:10853
& rect
Definition: startmenu.cpp:1413
smooth NULL
Definition: ftsmooth.c:416
GpStatus WINGDIPAPI GdipCreateLineBrushFromRectWithAngle(GDIPCONST GpRectF *rect, ARGB startcolor, ARGB endcolor, REAL angle, BOOL isAngleScalable, GpWrapMode wrap, GpLineGradient **line)
Definition: brush.c:489

◆ LinearGradientBrush() [6/6]

LinearGradientBrush::LinearGradientBrush ( const RectF rect,
const Color color1,
const Color color2,
LinearGradientMode  mode 
)
inline

Definition at line 219 of file gdiplusbrush.h.

220  {
221  GpLineGradient *brush = NULL;
223  &rect, color1.GetValue(), color2.GetValue(), mode, WrapModeTile, &brush);
224  SetNativeBrush(brush);
225  }
void SetNativeBrush(GpBrush *brush)
Definition: gdiplusbrush.h:84
Status lastStatus
Definition: gdiplusbrush.h:65
& rect
Definition: startmenu.cpp:1413
smooth NULL
Definition: ftsmooth.c:416
GpStatus WINGDIPAPI GdipCreateLineBrushFromRect(GDIPCONST GpRectF *rect, ARGB startcolor, ARGB endcolor, LinearGradientMode mode, GpWrapMode wrap, GpLineGradient **line)
Definition: brush.c:436
GLenum mode
Definition: glext.h:6217

Member Function Documentation

◆ GetBlend()

Status LinearGradientBrush::GetBlend ( REAL blendFactors,
REAL blendPositions,
INT  count 
)
inline

Definition at line 228 of file gdiplusbrush.h.

229  {
230  GpLineGradient *gradient = GetNativeGradient();
231  return SetStatus(DllExports::GdipGetLineBlend(gradient, blendFactors, blendPositions, count));
232  }
GLuint GLuint GLsizei count
Definition: gl.h:1545
GpStatus WINGDIPAPI GdipGetLineBlend(GpLineGradient *brush, REAL *factors, REAL *positions, INT count)
Definition: brush.c:1403
GpLineGradient * GetNativeGradient() const
Definition: gdiplusbrush.h:452
Status SetStatus(Status status) const
Definition: gdiplusbrush.h:76

◆ GetBlendCount()

INT LinearGradientBrush::GetBlendCount ( ) const
inline

Definition at line 235 of file gdiplusbrush.h.

236  {
237  INT count = 0;
238  GpLineGradient *gradient = GetNativeGradient();
240  return count;
241  }
GLuint GLuint GLsizei count
Definition: gl.h:1545
GpStatus WINGDIPAPI GdipGetLineBlendCount(GpLineGradient *brush, INT *count)
Definition: brush.c:1420
int32_t INT
Definition: typedefs.h:57
GpLineGradient * GetNativeGradient() const
Definition: gdiplusbrush.h:452
Status SetStatus(Status status) const
Definition: gdiplusbrush.h:76

◆ GetGammaCorrection()

BOOL LinearGradientBrush::GetGammaCorrection ( ) const
inline

Definition at line 244 of file gdiplusbrush.h.

245  {
246  BOOL useGammaCorrection;
247  GpLineGradient *gradient = GetNativeGradient();
248  SetStatus(DllExports::GdipGetLineGammaCorrection(gradient, &useGammaCorrection));
249  return useGammaCorrection;
250  }
unsigned int BOOL
Definition: ntddk_ex.h:94
GpLineGradient * GetNativeGradient() const
Definition: gdiplusbrush.h:452
Status SetStatus(Status status) const
Definition: gdiplusbrush.h:76
GpStatus WINGDIPAPI GdipGetLineGammaCorrection(GpLineGradient *line, BOOL *usinggamma)
Definition: brush.c:1030

◆ GetInterpolationColorCount()

INT LinearGradientBrush::GetInterpolationColorCount ( ) const
inline

Definition at line 253 of file gdiplusbrush.h.

254  {
255  INT count = 0;
256  GpLineGradient *gradient = GetNativeGradient();
258  return count;
259  }
GLuint GLuint GLsizei count
Definition: gl.h:1545
int32_t INT
Definition: typedefs.h:57
GpStatus WINGDIPAPI GdipGetLinePresetBlendCount(GpLineGradient *brush, INT *count)
Definition: brush.c:2095
GpLineGradient * GetNativeGradient() const
Definition: gdiplusbrush.h:452
Status SetStatus(Status status) const
Definition: gdiplusbrush.h:76

◆ GetInterpolationColors()

Status LinearGradientBrush::GetInterpolationColors ( Color presetColors,
REAL blendPositions,
INT  count 
) const
inline

Definition at line 262 of file gdiplusbrush.h.

263  {
264  return SetStatus(NotImplemented);
265  }
Status SetStatus(Status status) const
Definition: gdiplusbrush.h:76

◆ GetLinearColors()

Status LinearGradientBrush::GetLinearColors ( Color colors) const
inline

Definition at line 268 of file gdiplusbrush.h.

269  {
270  if (!colors)
271  return SetStatus(InvalidParameter);
272 
273  GpLineGradient *gradient = GetNativeGradient();
274 
275  ARGB argb[2];
276  SetStatus(DllExports::GdipGetLineColors(gradient, argb));
277  if (lastStatus == Ok)
278  {
279  colors[0] = Color(argb[0]);
280  colors[1] = Color(argb[1]);
281  }
282  return lastStatus;
283  }
GpStatus WINGDIPAPI GdipGetLineColors(GpLineGradient *brush, ARGB *colors)
Definition: brush.c:1983
Status lastStatus
Definition: gdiplusbrush.h:65
struct Color Color
GpLineGradient * GetNativeGradient() const
Definition: gdiplusbrush.h:452
Status SetStatus(Status status) const
Definition: gdiplusbrush.h:76
DWORD ARGB

◆ GetLinearPoints() [1/2]

Status LinearGradientBrush::GetLinearPoints ( PointF points) const
inline

Definition at line 418 of file gdiplusbrush.h.

419  {
420 #if 1
421  return SetStatus(NotImplemented);
422 #else
423  GpLineGradient *gradient = GetNativeGradient();
424  return SetStatus(DllExports::GdipGetLinePoints(gradient, points));
425 #endif
426  }
GpLineGradient * GetNativeGradient() const
Definition: gdiplusbrush.h:452
Status SetStatus(Status status) const
Definition: gdiplusbrush.h:76
GLsizei const GLfloat * points
Definition: glext.h:8112

◆ GetLinearPoints() [2/2]

Status LinearGradientBrush::GetLinearPoints ( Point points) const
inline

Definition at line 440 of file gdiplusbrush.h.

441  {
442 #if 1
443  return SetStatus(NotImplemented);
444 #else
445  GpLineGradient *gradient = GetNativeGradient();
446  return SetStatus(DllExports::GdipGetLinePointsI(gradient, points));
447 #endif
448  }
GpLineGradient * GetNativeGradient() const
Definition: gdiplusbrush.h:452
Status SetStatus(Status status) const
Definition: gdiplusbrush.h:76
GLsizei const GLfloat * points
Definition: glext.h:8112

◆ GetNativeGradient()

◆ GetRectangle() [1/2]

Status LinearGradientBrush::GetRectangle ( Rect rect) const
inline

Definition at line 286 of file gdiplusbrush.h.

287  {
288  GpLineGradient *gradient = GetNativeGradient();
289  return SetStatus(DllExports::GdipGetLineRectI(gradient, rect));
290  }
& rect
Definition: startmenu.cpp:1413
GpLineGradient * GetNativeGradient() const
Definition: gdiplusbrush.h:452
GpStatus WINGDIPAPI GdipGetLineRectI(GpLineGradient *brush, GpRect *rect)
Definition: brush.c:2203
Status SetStatus(Status status) const
Definition: gdiplusbrush.h:76

◆ GetRectangle() [2/2]

Status LinearGradientBrush::GetRectangle ( RectF rect) const
inline

Definition at line 293 of file gdiplusbrush.h.

294  {
295  GpLineGradient *gradient = GetNativeGradient();
296  return SetStatus(DllExports::GdipGetLineRect(gradient, rect));
297  }
& rect
Definition: startmenu.cpp:1413
GpStatus WINGDIPAPI GdipGetLineRect(GpLineGradient *brush, GpRectF *rect)
Definition: brush.c:2191
GpLineGradient * GetNativeGradient() const
Definition: gdiplusbrush.h:452
Status SetStatus(Status status) const
Definition: gdiplusbrush.h:76

◆ GetTransform()

Status LinearGradientBrush::GetTransform ( Matrix matrix) const
inline

Definition at line 300 of file gdiplusbrush.h.

301  {
302  GpLineGradient *gradient = GetNativeGradient();
304  }
GLuint GLenum matrix
Definition: glext.h:9407
friend GpBrush *& getNat(const Brush *brush)
Definition: gdiplusbrush.h:97
GpLineGradient * GetNativeGradient() const
Definition: gdiplusbrush.h:452
Status SetStatus(Status status) const
Definition: gdiplusbrush.h:76
GpStatus WINGDIPAPI GdipGetLineTransform(GpLineGradient *brush, GpMatrix *matrix)
Definition: brush.c:2129

◆ GetWrapMode()

WrapMode LinearGradientBrush::GetWrapMode ( ) const
inline

Definition at line 307 of file gdiplusbrush.h.

308  {
309 
310  WrapMode wrapMode;
311  GpLineGradient *gradient = GetNativeGradient();
312  SetStatus(DllExports::GdipGetLineWrapMode(gradient, &wrapMode));
313  return wrapMode;
314  }
GpStatus WINGDIPAPI GdipGetLineWrapMode(GpLineGradient *brush, GpWrapMode *wrapmode)
Definition: brush.c:1043
WrapMode
Definition: gdiplusenums.h:205
GpLineGradient * GetNativeGradient() const
Definition: gdiplusbrush.h:452
Status SetStatus(Status status) const
Definition: gdiplusbrush.h:76

◆ MultiplyTransform()

Status LinearGradientBrush::MultiplyTransform ( const Matrix matrix,
MatrixOrder  order 
)
inline

Definition at line 317 of file gdiplusbrush.h.

318  {
319  GpLineGradient *gradient = GetNativeGradient();
321  }
GLuint GLdouble GLdouble GLint GLint order
Definition: glext.h:11194
GLuint GLenum matrix
Definition: glext.h:9407
friend GpBrush *& getNat(const Brush *brush)
Definition: gdiplusbrush.h:97
GpStatus WINGDIPAPI GdipMultiplyLineTransform(GpLineGradient *brush, GDIPCONST GpMatrix *matrix, GpMatrixOrder order)
Definition: brush.c:2152
GpLineGradient * GetNativeGradient() const
Definition: gdiplusbrush.h:452
Status SetStatus(Status status) const
Definition: gdiplusbrush.h:76

◆ ResetTransform()

Status LinearGradientBrush::ResetTransform ( )
inline

Definition at line 324 of file gdiplusbrush.h.

325  {
326  GpLineGradient *gradient = GetNativeGradient();
328  }
GpStatus WINGDIPAPI GdipResetLineTransform(GpLineGradient *brush)
Definition: brush.c:2106
GpLineGradient * GetNativeGradient() const
Definition: gdiplusbrush.h:452
Status SetStatus(Status status) const
Definition: gdiplusbrush.h:76

◆ RotateTransform()

Status LinearGradientBrush::RotateTransform ( REAL  angle,
MatrixOrder  order 
)
inline

Definition at line 331 of file gdiplusbrush.h.

332  {
333  GpLineGradient *gradient = GetNativeGradient();
335  }
GLuint GLdouble GLdouble GLint GLint order
Definition: glext.h:11194
GLfloat angle
Definition: glext.h:10853
GpLineGradient * GetNativeGradient() const
Definition: gdiplusbrush.h:452
Status SetStatus(Status status) const
Definition: gdiplusbrush.h:76
GpStatus WINGDIPAPI GdipRotateLineTransform(GpLineGradient *brush, REAL angle, GpMatrixOrder order)
Definition: brush.c:2225

◆ ScaleTransform()

Status LinearGradientBrush::ScaleTransform ( REAL  sx,
REAL  sy,
MatrixOrder  order = MatrixOrderPrepend 
)
inline

Definition at line 338 of file gdiplusbrush.h.

339  {
340  GpLineGradient *gradient = GetNativeGradient();
341  return SetStatus(DllExports::GdipScaleLineTransform(gradient, sx, sy, order));
342  }
GLuint GLdouble GLdouble GLint GLint order
Definition: glext.h:11194
GpStatus WINGDIPAPI GdipScaleLineTransform(GpLineGradient *brush, REAL sx, REAL sy, GpMatrixOrder order)
Definition: brush.c:2141
GpLineGradient * GetNativeGradient() const
Definition: gdiplusbrush.h:452
Status SetStatus(Status status) const
Definition: gdiplusbrush.h:76

◆ SetBlend()

Status LinearGradientBrush::SetBlend ( const REAL blendFactors,
const REAL blendPositions,
INT  count 
)
inline

Definition at line 345 of file gdiplusbrush.h.

346  {
347  GpLineGradient *gradient = GetNativeGradient();
348  return SetStatus(DllExports::GdipSetLineBlend(gradient, blendFactors, blendPositions, count));
349  }
GLuint GLuint GLsizei count
Definition: gl.h:1545
GpStatus WINGDIPAPI GdipSetLineBlend(GpLineGradient *brush, GDIPCONST REAL *factors, GDIPCONST REAL *positions, INT count)
Definition: brush.c:1369
GpLineGradient * GetNativeGradient() const
Definition: gdiplusbrush.h:452
Status SetStatus(Status status) const
Definition: gdiplusbrush.h:76

◆ SetBlendBellShape()

Status LinearGradientBrush::SetBlendBellShape ( REAL  focus,
REAL  scale 
)
inline

Definition at line 352 of file gdiplusbrush.h.

353  {
354  GpLineGradient *gradient = GetNativeGradient();
355  return SetStatus(DllExports::GdipSetLineSigmaBlend(gradient, focus, scale));
356  }
GLenum GLenum GLenum GLenum GLenum scale
Definition: glext.h:9032
GpLineGradient * GetNativeGradient() const
Definition: gdiplusbrush.h:452
GpStatus WINGDIPAPI GdipSetLineSigmaBlend(GpLineGradient *line, REAL focus, REAL scale)
Definition: brush.c:1445
Status SetStatus(Status status) const
Definition: gdiplusbrush.h:76

◆ SetBlendTriangularShape()

Status LinearGradientBrush::SetBlendTriangularShape ( REAL  focus,
REAL  scale = 1.0f 
)
inline

Definition at line 359 of file gdiplusbrush.h.

360  {
361  GpLineGradient *gradient = GetNativeGradient();
362  return SetStatus(DllExports::GdipSetLineLinearBlend(gradient, focus, scale));
363  }
GLenum GLenum GLenum GLenum GLenum scale
Definition: glext.h:9032
GpLineGradient * GetNativeGradient() const
Definition: gdiplusbrush.h:452
Status SetStatus(Status status) const
Definition: gdiplusbrush.h:76
GpStatus WINGDIPAPI GdipSetLineLinearBlend(GpLineGradient *brush, REAL focus, REAL scale)
Definition: brush.c:2010

◆ SetGammaCorrection()

Status LinearGradientBrush::SetGammaCorrection ( BOOL  useGammaCorrection)
inline

Definition at line 366 of file gdiplusbrush.h.

367  {
368  GpLineGradient *gradient = GetNativeGradient();
369  return SetStatus(DllExports::GdipSetLineGammaCorrection(gradient, useGammaCorrection));
370  }
GpLineGradient * GetNativeGradient() const
Definition: gdiplusbrush.h:452
Status SetStatus(Status status) const
Definition: gdiplusbrush.h:76
GpStatus WINGDIPAPI GdipSetLineGammaCorrection(GpLineGradient *line, BOOL usegamma)
Definition: brush.c:1432

◆ SetInterpolationColors()

Status LinearGradientBrush::SetInterpolationColors ( const Color presetColors,
const REAL blendPositions,
INT  count 
)
inline

Definition at line 373 of file gdiplusbrush.h.

374  {
375  return SetStatus(NotImplemented);
376  }
Status SetStatus(Status status) const
Definition: gdiplusbrush.h:76

◆ SetLinearColors()

Status LinearGradientBrush::SetLinearColors ( const Color color1,
const Color color2 
)
inline

Definition at line 379 of file gdiplusbrush.h.

380  {
381  GpLineGradient *gradient = GetNativeGradient();
382  return SetStatus(DllExports::GdipSetLineColors(gradient, color1.GetValue(), color2.GetValue()));
383  }
GpStatus WINGDIPAPI GdipSetLineColors(GpLineGradient *brush, ARGB color1, ARGB color2)
Definition: brush.c:1969
GpLineGradient * GetNativeGradient() const
Definition: gdiplusbrush.h:452
Status SetStatus(Status status) const
Definition: gdiplusbrush.h:76

◆ SetLinearPoints() [1/2]

Status LinearGradientBrush::SetLinearPoints ( const PointF point1,
const PointF point2 
)
inline

Definition at line 407 of file gdiplusbrush.h.

408  {
409 #if 1
410  return SetStatus(NotImplemented);
411 #else
412  GpLineGradient *gradient = GetNativeGradient();
413  return SetStatus(DllExports::GdipSetLinePoints(gradient, &point1, &point2));
414 #endif
415  }
GpLineGradient * GetNativeGradient() const
Definition: gdiplusbrush.h:452
Status SetStatus(Status status) const
Definition: gdiplusbrush.h:76

◆ SetLinearPoints() [2/2]

Status LinearGradientBrush::SetLinearPoints ( const Point point1,
const Point point2 
)
inline

Definition at line 429 of file gdiplusbrush.h.

430  {
431 #if 1
432  return SetStatus(NotImplemented);
433 #else
434  GpLineGradient *gradient = GetNativeGradient();
435  return SetStatus(DllExports::GdipSetLinePointsI(gradient, &point1, &point2));
436 #endif
437  }
GpLineGradient * GetNativeGradient() const
Definition: gdiplusbrush.h:452
Status SetStatus(Status status) const
Definition: gdiplusbrush.h:76

◆ SetTransform()

Status LinearGradientBrush::SetTransform ( const Matrix matrix)
inline

Definition at line 386 of file gdiplusbrush.h.

387  {
388  GpLineGradient *gradient = GetNativeGradient();
390  }
GpStatus WINGDIPAPI GdipSetLineTransform(GpLineGradient *brush, GDIPCONST GpMatrix *matrix)
Definition: brush.c:2116
GLuint GLenum matrix
Definition: glext.h:9407
friend GpBrush *& getNat(const Brush *brush)
Definition: gdiplusbrush.h:97
GpLineGradient * GetNativeGradient() const
Definition: gdiplusbrush.h:452
Status SetStatus(Status status) const
Definition: gdiplusbrush.h:76

◆ SetWrapMode()

Status LinearGradientBrush::SetWrapMode ( WrapMode  wrapMode)
inline

Definition at line 393 of file gdiplusbrush.h.

394  {
395  GpLineGradient *gradient = GetNativeGradient();
396  return SetStatus(DllExports::GdipSetLineWrapMode(gradient, wrapMode));
397  }
GpStatus WINGDIPAPI GdipSetLineWrapMode(GpLineGradient *line, GpWrapMode wrap)
Definition: brush.c:1501
GpLineGradient * GetNativeGradient() const
Definition: gdiplusbrush.h:452
Status SetStatus(Status status) const
Definition: gdiplusbrush.h:76

◆ TranslateTransform()

Status LinearGradientBrush::TranslateTransform ( REAL  dx,
REAL  dy,
MatrixOrder  order = MatrixOrderPrepend 
)
inline

Definition at line 400 of file gdiplusbrush.h.

401  {
402  GpLineGradient *gradient = GetNativeGradient();
404  }
GLuint GLdouble GLdouble GLint GLint order
Definition: glext.h:11194
GLint dy
Definition: linetemp.h:97
GpLineGradient * GetNativeGradient() const
Definition: gdiplusbrush.h:452
Status SetStatus(Status status) const
Definition: gdiplusbrush.h:76
GpStatus WINGDIPAPI GdipTranslateLineTransform(GpLineGradient *brush, REAL dx, REAL dy, GpMatrixOrder order)
Definition: brush.c:2166
GLint dx
Definition: linetemp.h:97

Friends And Related Function Documentation

◆ Pen

friend class Pen
friend

Definition at line 167 of file gdiplusbrush.h.


The documentation for this class was generated from the following file: