ReactOS  0.4.13-dev-544-gede3fdd
gdiplusbrush.h
Go to the documentation of this file.
1 /*
2  * GdiPlusBrush.h
3  *
4  * Windows GDI+
5  *
6  * This file is part of the w32api package.
7  *
8  * THIS SOFTWARE IS NOT COPYRIGHTED
9  *
10  * This source code is offered for use in the public domain. You may
11  * use, modify or distribute it freely.
12  *
13  * This code is distributed in the hope that it will be useful but
14  * WITHOUT ANY WARRANTY. ALL WARRANTIES, EXPRESS OR IMPLIED ARE HEREBY
15  * DISCLAIMED. This includes but is not limited to warranties of
16  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
17  */
18 
19 #ifndef _GDIPLUSBRUSH_H
20 #define _GDIPLUSBRUSH_H
21 
22 class Image;
23 
24 class Brush : public GdiplusBase
25 {
26 public:
27  friend class Graphics;
28  friend class Pen;
29 
30  Brush *Clone(VOID) const
31  {
32  return NULL;
33  }
34 
36  {
37  return status;
38  }
39 
41  {
44  return type;
45  }
46 
47 private:
48  mutable Status status;
50 
52  {
53  if (status == Ok)
54  return status;
55  this->status = status;
56  return status;
57  }
58 };
59 
60 
61 class HatchBrush : public Brush
62 {
63 public:
64  HatchBrush(HatchStyle hatchStyle, const Color &foreColor, const Color &backColor)
65  {
66  }
67 
69  {
70  return NotImplemented;
71  }
72 
74  {
75  return NotImplemented;
76  }
77 
79  {
80  return HatchStyleHorizontal;
81  }
82 };
83 
84 
85 class LinearGradientBrush : public Brush
86 {
87 public:
88  LinearGradientBrush(const PointF &point1, const PointF &point2, const Color &color1, const Color &color2)
89  {
90  }
91 
92  LinearGradientBrush(const Rect &rect, const Color &color1, const Color &color2, REAL angle, BOOL isAngleScalable)
93  {
94  }
95 
96  LinearGradientBrush(const Rect &rect, const Color &color1, const Color &color2, LinearGradientMode mode)
97  {
98  }
99 
100  LinearGradientBrush(const Point &point1, const Point &point2, const Color &color1, const Color &color2)
101  {
102  }
103 
104  LinearGradientBrush(const RectF &rect, const Color &color1, const Color &color2, REAL angle, BOOL isAngleScalable)
105  {
106  }
107 
108  LinearGradientBrush(const RectF &rect, const Color &color1, const Color &color2, LinearGradientMode mode)
109  {
110  }
111 
112  Status GetBlend(REAL *blendFactors, REAL *blendPositions, INT count)
113  {
114  return NotImplemented;
115  }
116 
118  {
119  return 0;
120  }
121 
123  {
124  return FALSE;
125  }
126 
128  {
129  return 0;
130  }
131 
132  Status GetInterpolationColors(Color *presetColors, REAL *blendPositions, INT count) const
133  {
134  return NotImplemented;
135  }
136 
137  Status GetLinearColors(Color* colors) const
138  {
139  return NotImplemented;
140  }
141 
143  {
144  return NotImplemented;
145  }
146 
148  {
149  return NotImplemented;
150  }
151 
153  {
154  return NotImplemented;
155  }
156 
158  {
159  return WrapModeTile;
160  }
161 
163  {
164  return NotImplemented;
165  }
166 
168  {
169  return NotImplemented;
170  }
171 
173  {
174  return NotImplemented;
175  }
176 
178  {
179  return NotImplemented;
180  }
181 
182  Status SetBlend(const REAL *blendFactors, const REAL *blendPositions, INT count)
183  {
184  return NotImplemented;
185  }
186 
188  {
189  return NotImplemented;
190  }
191 
193  {
194  return NotImplemented;
195  }
196 
197  Status SetGammaCorrection(BOOL useGammaCorrection)
198  {
199  return NotImplemented;
200  }
201 
202  Status SetInterpolationColors(const Color *presetColors, const REAL *blendPositions, INT count)
203  {
204  return NotImplemented;
205  }
206 
207  Status SetLinearColors(const Color& color1, const Color& color2)
208  {
209  return NotImplemented;
210  }
211 
213  {
214  return NotImplemented;
215  }
216 
218  {
219  return NotImplemented;
220  }
221 
223  {
224  return NotImplemented;
225  }
226 };
227 
228 
230 {
231 public:
233  {
234  }
235 
237  {
238  return NotImplemented;
239  }
240 
242  {
243  return NotImplemented;
244  }
245 };
246 
247 
249 {
250 public:
251  TextureBrush(Image *image, WrapMode wrapMode, const RectF &dstRect)
252  {
253  }
254 
255  TextureBrush(Image *image, Rect &dstRect, ImageAttributes *imageAttributes)
256  {
257  }
258 
259  TextureBrush(Image *image, WrapMode wrapMode, INT dstX, INT dstY, INT dstWidth, INT dstHeight)
260  {
261  }
262 
263  TextureBrush(Image *image, WrapMode wrapMode, REAL dstX, REAL dstY, REAL dstWidth, REAL dstHeight)
264  {
265  }
266 
267  TextureBrush(Image *image, RectF &dstRect, ImageAttributes *imageAttributes)
268  {
269  }
270 
272  {
273  }
274 
275  TextureBrush(Image *image, WrapMode wrapMode, const Rect &dstRect)
276  {
277  }
278 
280  {
281  return NULL;
282  }
283 
285  {
286  return NotImplemented;
287  }
288 
290  {
291  return WrapModeTile;
292  }
293 
295  {
296  return NotImplemented;
297  }
298 
300  {
301  return NotImplemented;
302  }
303 
305  {
306  return NotImplemented;
307  }
308 
310  {
311  return NotImplemented;
312  }
313 
315  {
316  return NotImplemented;
317  }
318 
320  {
321  return NotImplemented;
322  }
323 
325  {
326  return NotImplemented;
327  }
328 };
329 
330 #endif /* _GDIPLUSBRUSH_H */
LinearGradientBrush(const Rect &rect, const Color &color1, const Color &color2, REAL angle, BOOL isAngleScalable)
Definition: gdiplusbrush.h:92
LinearGradientBrush(const RectF &rect, const Color &color1, const Color &color2, LinearGradientMode mode)
Definition: gdiplusbrush.h:108
INT GetInterpolationColorCount(VOID) const
Definition: gdiplusbrush.h:127
Status RotateTransform(REAL angle, MatrixOrder order)
Definition: gdiplusbrush.h:172
GLuint GLdouble GLdouble GLint GLint order
Definition: glext.h:11194
Status SetInterpolationColors(const Color *presetColors, const REAL *blendPositions, INT count)
Definition: gdiplusbrush.h:202
SolidBrush(const Color &color)
Definition: gdiplusbrush.h:232
HatchStyle
Definition: gdiplusenums.h:387
LinearGradientMode
Definition: gdiplusenums.h:222
Status SetLinearColors(const Color &color1, const Color &color2)
Definition: gdiplusbrush.h:207
Status SetBlend(const REAL *blendFactors, const REAL *blendPositions, INT count)
Definition: gdiplusbrush.h:182
Status GetTransform(Matrix *matrix) const
Definition: gdiplusbrush.h:152
GLenum GLint GLint GLint GLint GLuint GLenum GLint GLint GLint dstY
Definition: glext.h:11259
WrapMode
Definition: gdiplusenums.h:203
Status SetBlendTriangularShape(REAL focus, REAL scale)
Definition: gdiplusbrush.h:192
Status TranslateTransform(REAL dx, REAL dy, MatrixOrder order)
Definition: gdiplusbrush.h:324
GLuint GLenum matrix
Definition: glext.h:9407
GLuint GLuint GLsizei count
Definition: gl.h:1545
GLint dy
Definition: linetemp.h:97
GLenum GLenum GLenum GLenum GLenum scale
Definition: glext.h:9032
Brush * Clone(VOID) const
Definition: gdiplusbrush.h:30
TextureBrush(Image *image, Rect &dstRect, ImageAttributes *imageAttributes)
Definition: gdiplusbrush.h:255
Status SetTransform(const Matrix *matrix)
Definition: gdiplusbrush.h:212
BrushType GetType(VOID)
Definition: gdiplusbrush.h:40
GLuint GLuint GLsizei GLenum type
Definition: gl.h:1545
TextureBrush(Image *image, WrapMode wrapMode, const Rect &dstRect)
Definition: gdiplusbrush.h:275
Status status
Definition: gdiplusbrush.h:48
Status GetLinearColors(Color *colors) const
Definition: gdiplusbrush.h:137
GLfloat angle
Definition: glext.h:10853
Status MultiplyTransform(const Matrix *matrix, MatrixOrder order)
Definition: gdiplusbrush.h:162
GpBrush * brush
Definition: gdiplusbrush.h:49
Status ScaleTransform(REAL sx, REAL sy, MatrixOrder order)
Definition: gdiplusbrush.h:177
int32_t INT
Definition: typedefs.h:56
& rect
Definition: startmenu.cpp:1413
LinearGradientBrush(const RectF &rect, const Color &color1, const Color &color2, REAL angle, BOOL isAngleScalable)
Definition: gdiplusbrush.h:104
Status ResetTransform(VOID)
Definition: gdiplusbrush.h:167
Status GetRectangle(RectF *rect) const
Definition: gdiplusbrush.h:147
Status GetTransform(Matrix *matrix) const
Definition: gdiplusbrush.h:284
Status ScaleTransform(REAL sx, REAL sy, MatrixOrder order)
Definition: gdiplusbrush.h:309
unsigned int BOOL
Definition: ntddk_ex.h:94
GLuint color
Definition: glext.h:6243
smooth NULL
Definition: ftsmooth.c:416
WrapMode GetWrapMode(VOID) const
Definition: gdiplusbrush.h:157
TextureBrush(Image *image, RectF &dstRect, ImageAttributes *imageAttributes)
Definition: gdiplusbrush.h:267
HatchStyle GetHatchStyle(VOID) const
Definition: gdiplusbrush.h:78
Status SetColor(const Color &color)
Definition: gdiplusbrush.h:241
Status ResetTransform(VOID)
Definition: gdiplusbrush.h:299
LinearGradientBrush(const Point &point1, const Point &point2, const Color &color1, const Color &color2)
Definition: gdiplusbrush.h:100
MatrixOrder
Definition: gdiplusenums.h:185
Status SetStatus(Status status) const
Definition: gdiplusbrush.h:51
Status RotateTransform(REAL angle, MatrixOrder order)
Definition: gdiplusbrush.h:304
Status SetBlendBellShape(REAL focus, REAL scale)
Definition: gdiplusbrush.h:187
Status SetWrapMode(WrapMode wrapMode)
Definition: gdiplusbrush.h:319
Status TranslateTransform(REAL dx, REAL dy, MatrixOrder order)
Definition: gdiplusbrush.h:222
Status GetBlend(REAL *blendFactors, REAL *blendPositions, INT count)
Definition: gdiplusbrush.h:112
GpStatus WINGDIPAPI GdipGetBrushType(GpBrush *brush, GpBrushType *type)
Definition: brush.c:950
BOOL GetGammaCorrection(VOID) const
Definition: gdiplusbrush.h:122
TextureBrush(Image *image, WrapMode wrapMode, INT dstX, INT dstY, INT dstWidth, INT dstHeight)
Definition: gdiplusbrush.h:259
Status GetInterpolationColors(Color *presetColors, REAL *blendPositions, INT count) const
Definition: gdiplusbrush.h:132
LinearGradientBrush(const Rect &rect, const Color &color1, const Color &color2, LinearGradientMode mode)
Definition: gdiplusbrush.h:96
Image * GetImage(VOID) const
Definition: gdiplusbrush.h:279
Status GetLastStatus(VOID)
Definition: gdiplusbrush.h:35
GLenum mode
Definition: glext.h:6217
HatchBrush(HatchStyle hatchStyle, const Color &foreColor, const Color &backColor)
Definition: gdiplusbrush.h:64
Status
Definition: gdiplustypes.h:24
Status GetBackgroundColor(Color *color) const
Definition: gdiplusbrush.h:68
GLenum GLint GLint GLint GLint GLuint GLenum GLint GLint dstX
Definition: glext.h:11259
Status SetWrapMode(WrapMode wrapMode)
Definition: gdiplusbrush.h:217
Status GetColor(Color *color) const
Definition: gdiplusbrush.h:236
TextureBrush(Image *image, WrapMode wrapMode, REAL dstX, REAL dstY, REAL dstWidth, REAL dstHeight)
Definition: gdiplusbrush.h:263
INT GetBlendCount(VOID) const
Definition: gdiplusbrush.h:117
Status GetForegroundColor(Color *color) const
Definition: gdiplusbrush.h:73
Status SetTransform(const Matrix *matrix)
Definition: gdiplusbrush.h:314
GLint dx
Definition: linetemp.h:97
Status GetRectangle(Rect *rect) const
Definition: gdiplusbrush.h:142
WrapMode GetWrapMode(VOID) const
Definition: gdiplusbrush.h:289
TextureBrush(Image *image, WrapMode wrapMode)
Definition: gdiplusbrush.h:271
BrushType
Definition: gdiplusenums.h:36
float REAL
Definition: types.h:41
Status MultiplyTransform(Matrix *matrix, MatrixOrder order)
Definition: gdiplusbrush.h:294
LinearGradientBrush(const PointF &point1, const PointF &point2, const Color &color1, const Color &color2)
Definition: gdiplusbrush.h:88
Definition: gdipluspen.h:24
TextureBrush(Image *image, WrapMode wrapMode, const RectF &dstRect)
Definition: gdiplusbrush.h:251
Status SetGammaCorrection(BOOL useGammaCorrection)
Definition: gdiplusbrush.h:197
Definition: ps.c:97