ReactOS  0.4.9-dev-717-g6d91262
Pen Class Reference

#include <gdipluspen.h>

Inheritance diagram for Pen:
Collaboration diagram for Pen:

Public Member Functions

 Pen (const Brush *brush, REAL width=1.0f)
 
 Pen (const Color &color, REAL width=1.0f)
 
PenClone (VOID)
 
PenAlignment GetAlignment (VOID)
 
BrushGetBrush (VOID)
 
Status GetColor (Color *color)
 
Status GetCompoundArray (REAL *compoundArray, INT count)
 
INT GetCompoundArrayCount (VOID)
 
Status GetCustomEndCap (CustomLineCap *customCap)
 
Status GetCustomStartCap (CustomLineCap *customCap)
 
DashCap GetDashCap (VOID)
 
REAL GetDashOffset (VOID)
 
Status GetDashPattern (REAL *dashArray, INT count)
 
INT GetDashPatternCount (VOID)
 
DashStyle GetDashStyle (VOID)
 
LineCap GetEndCap (VOID)
 
Status GetLastStatus (VOID)
 
LineJoin GetLineJoin (VOID)
 
REAL GetMiterLimit (VOID)
 
PenType GetPenType (VOID)
 
LineCap GetStartCap (VOID)
 
Status GetTransform (Matrix *matrix)
 
REAL GetWidth (VOID)
 
Status MultiplyTransform (Matrix *matrix, MatrixOrder order)
 
Status ResetTransform (VOID)
 
Status RotateTransform (REAL angle, MatrixOrder order)
 
Status ScaleTransform (REAL sx, REAL sy, MatrixOrder order)
 
Status SetAlignment (PenAlignment penAlignment)
 
Status SetBrush (const Brush *brush)
 
Status SetColor (const Color &color)
 
Status SetCompoundArray (const REAL *compoundArray, INT count)
 
Status SetCustomEndCap (const CustomLineCap *customCap)
 
Status SetCustomStartCap (const CustomLineCap *customCap)
 
Status SetDashCap (DashCap dashCap)
 
Status SetDashOffset (REAL dashOffset)
 
Status SetDashPattern (const REAL *dashArray, INT count)
 
Status SetDashStyle (DashStyle dashStyle)
 
Status SetEndCap (LineCap endCap)
 
Status SetLineCap (LineCap startCap, LineCap endCap, DashCap dashCap)
 
Status SetLineJoin (LineJoin lineJoin)
 
Status SetMiterLimit (REAL miterLimit)
 
Status SetStartCap (LineCap startCap)
 
Status SetTransform (const Matrix *matrix)
 
Status SetWidth (REAL width)
 
- 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)
 

Private Member Functions

Status SetStatus (Status status) const
 

Private Attributes

GpPenpen
 
Status status
 

Friends

class Graphics
 

Detailed Description

Definition at line 24 of file gdipluspen.h.

Constructor & Destructor Documentation

Pen::Pen ( const Brush brush,
REAL  width = 1.0f 
)
inline

Definition at line 29 of file gdipluspen.h.

30  {
31  }
Pen::Pen ( const Color color,
REAL  width = 1.0f 
)
inline

Definition at line 33 of file gdipluspen.h.

34  {
36  pen = NULL;
37  status = DllExports::GdipCreatePen1(color.GetValue(),
38  width,
39  unit,
40  &pen);
41  }
Unit
Definition: gdiplusenums.h:25
png_const_structrp png_const_inforp int * unit
Definition: png.h:2192
smooth NULL
Definition: ftsmooth.c:416
GLint GLint GLsizei width
Definition: gl.h:1546
GpPen * pen
Definition: gdipluspen.h:282
GpStatus WINGDIPAPI GdipCreatePen1(ARGB color, REAL width, GpUnit unit, GpPen **pen)
Definition: pen.c:136
Definition: ps.c:97

Member Function Documentation

Pen* Pen::Clone ( VOID  )
inline

Definition at line 43 of file gdipluspen.h.

44  {
45  return NULL;
46  }
smooth NULL
Definition: ftsmooth.c:416
PenAlignment Pen::GetAlignment ( VOID  )
inline

Definition at line 48 of file gdipluspen.h.

49  {
50  PenAlignment penAlignment;
51  SetStatus(DllExports::GdipGetPenMode(pen, &penAlignment));
52  return penAlignment;
53  }
PenAlignment
Definition: gdiplusenums.h:152
GpStatus WINGDIPAPI GdipGetPenMode(GpPen *pen, GpPenAlignment *mode)
Definition: pen.c:360
Status SetStatus(Status status) const
Definition: gdipluspen.h:287
GpPen * pen
Definition: gdipluspen.h:282
Brush* Pen::GetBrush ( VOID  )
inline

Definition at line 55 of file gdipluspen.h.

56  {
57  return NULL;
58  }
smooth NULL
Definition: ftsmooth.c:416
Status Pen::GetColor ( Color color)
inline

Definition at line 60 of file gdipluspen.h.

61  {
62  ARGB argb;
64  if (color)
65  color->SetValue(argb);
66  return status;
67  }
Status status
Definition: gdipluspen.h:285
GpStatus WINGDIPAPI GdipGetPenColor(GpPen *pen, ARGB *argb)
Definition: pen.c:217
Status SetStatus(Status status) const
Definition: gdipluspen.h:287
Status
Definition: gdiplustypes.h:24
GpPen * pen
Definition: gdipluspen.h:282
Definition: ps.c:97
DWORD ARGB
Status Pen::GetCompoundArray ( REAL compoundArray,
INT  count 
)
inline

Definition at line 69 of file gdipluspen.h.

70  {
71  return NotImplemented; // FIXME: not available: SetStatus(DllExports::GdipGetPenCompoundArray(pen, count));
72  }
INT Pen::GetCompoundArrayCount ( VOID  )
inline

Definition at line 74 of file gdipluspen.h.

75  {
76  INT count;
78  return count;
79  }
int32_t INT
Definition: typedefs.h:56
GpStatus WINGDIPAPI GdipGetPenCompoundCount(GpPen *pen, INT *count)
Definition: pen.c:546
GLuint GLuint GLsizei count
Definition: gl.h:1545
Status SetStatus(Status status) const
Definition: gdipluspen.h:287
GpPen * pen
Definition: gdipluspen.h:282
Status Pen::GetCustomEndCap ( CustomLineCap customCap)
inline

Definition at line 81 of file gdipluspen.h.

82  {
83  return NotImplemented;
84  }
Status Pen::GetCustomStartCap ( CustomLineCap customCap)
inline

Definition at line 86 of file gdipluspen.h.

87  {
88  return NotImplemented;
89  }
DashCap Pen::GetDashCap ( VOID  )
inline

Definition at line 91 of file gdipluspen.h.

92  {
93  DashCap dashCap;
95  return dashCap;
96  }
DashCap
Definition: gdiplusenums.h:168
Status SetStatus(Status status) const
Definition: gdipluspen.h:287
GpPen * pen
Definition: gdipluspen.h:282
GpStatus WINGDIPAPI GdipGetPenDashCap197819(GpPen *pen, GpDashCap *dashCap)
Definition: pen.c:276
REAL Pen::GetDashOffset ( VOID  )
inline

Definition at line 98 of file gdipluspen.h.

99  {
100  REAL offset;
102  return offset;
103  }
GLintptr offset
Definition: glext.h:5920
GpStatus WINGDIPAPI GdipGetPenDashOffset(GpPen *pen, REAL *offset)
Definition: pen.c:300
Status SetStatus(Status status) const
Definition: gdipluspen.h:287
GpPen * pen
Definition: gdipluspen.h:282
float REAL
Definition: types.h:41
Status Pen::GetDashPattern ( REAL dashArray,
INT  count 
)
inline

Definition at line 105 of file gdipluspen.h.

106  {
108  }
GpStatus WINGDIPAPI GdipGetPenDashArray(GpPen *pen, REAL *dash, INT count)
Definition: pen.c:260
GLuint GLuint GLsizei count
Definition: gl.h:1545
Status SetStatus(Status status) const
Definition: gdipluspen.h:287
GLsizei const GLfloat * dashArray
Definition: glext.h:11725
GpPen * pen
Definition: gdipluspen.h:282
INT Pen::GetDashPatternCount ( VOID  )
inline

Definition at line 110 of file gdipluspen.h.

111  {
112  INT count;
114  return count;
115  }
GpStatus WINGDIPAPI GdipGetPenDashCount(GpPen *pen, INT *count)
Definition: pen.c:288
int32_t INT
Definition: typedefs.h:56
GLuint GLuint GLsizei count
Definition: gl.h:1545
Status SetStatus(Status status) const
Definition: gdipluspen.h:287
GpPen * pen
Definition: gdipluspen.h:282
DashStyle Pen::GetDashStyle ( VOID  )
inline

Definition at line 117 of file gdipluspen.h.

118  {
119  DashStyle dashStyle;
121  return dashStyle;
122  }
GpStatus WINGDIPAPI GdipGetPenDashStyle(GpPen *pen, GpDashStyle *dash)
Definition: pen.c:312
Status SetStatus(Status status) const
Definition: gdipluspen.h:287
DashStyle
Definition: gdiplusenums.h:175
GpPen * pen
Definition: gdipluspen.h:282
LineCap Pen::GetEndCap ( VOID  )
inline

Definition at line 124 of file gdipluspen.h.

125  {
126  LineCap endCap;
128  return endCap;
129  }
LineCap
Definition: gdiplusenums.h:59
Status SetStatus(Status status) const
Definition: gdipluspen.h:287
GpStatus WINGDIPAPI GdipGetPenEndCap(GpPen *pen, GpLineCap *endCap)
Definition: pen.c:324
GpPen * pen
Definition: gdipluspen.h:282
Status Pen::GetLastStatus ( VOID  )
inline

Definition at line 131 of file gdipluspen.h.

132  {
133  return status;
134  }
Status status
Definition: gdipluspen.h:285
LineJoin Pen::GetLineJoin ( VOID  )
inline

Definition at line 136 of file gdipluspen.h.

137  {
138  LineJoin lineJoin;
140  return lineJoin;
141  }
LineJoin
Definition: gdiplusenums.h:103
Status SetStatus(Status status) const
Definition: gdipluspen.h:287
GpPen * pen
Definition: gdipluspen.h:282
GpStatus WINGDIPAPI GdipGetPenLineJoin(GpPen *pen, GpLineJoin *lineJoin)
Definition: pen.c:348
REAL Pen::GetMiterLimit ( VOID  )
inline

Definition at line 143 of file gdipluspen.h.

144  {
145  REAL miterLimit;
147  return miterLimit;
148  }
GpStatus WINGDIPAPI GdipGetPenMiterLimit(GpPen *pen, REAL *miterLimit)
Definition: pen.c:372
Status SetStatus(Status status) const
Definition: gdipluspen.h:287
GpPen * pen
Definition: gdipluspen.h:282
float REAL
Definition: types.h:41
PenType Pen::GetPenType ( VOID  )
inline

Definition at line 150 of file gdipluspen.h.

151  {
152  PenType type;
154  return type;
155  }
GLuint GLuint GLsizei GLenum type
Definition: gl.h:1545
Status SetStatus(Status status) const
Definition: gdipluspen.h:287
PenType
Definition: gdiplusenums.h:93
GpStatus WINGDIPAPI GdipGetPenFillType(GpPen *pen, GpPenType *type)
Definition: pen.c:336
GpPen * pen
Definition: gdipluspen.h:282
LineCap Pen::GetStartCap ( VOID  )
inline

Definition at line 157 of file gdipluspen.h.

158  {
159  LineCap startCap;
161  return startCap;
162  }
LineCap
Definition: gdiplusenums.h:59
GpStatus WINGDIPAPI GdipGetPenStartCap(GpPen *pen, GpLineCap *startCap)
Definition: pen.c:384
Status SetStatus(Status status) const
Definition: gdipluspen.h:287
GpPen * pen
Definition: gdipluspen.h:282
Status Pen::GetTransform ( Matrix matrix)
inline

Definition at line 164 of file gdipluspen.h.

165  {
166  return NotImplemented;
167  }
REAL Pen::GetWidth ( VOID  )
inline

Definition at line 169 of file gdipluspen.h.

170  {
171  REAL width;
173  return width;
174  }
GpStatus WINGDIPAPI GdipGetPenWidth(GpPen *pen, REAL *width)
Definition: pen.c:408
GLint GLint GLsizei width
Definition: gl.h:1546
Status SetStatus(Status status) const
Definition: gdipluspen.h:287
GpPen * pen
Definition: gdipluspen.h:282
float REAL
Definition: types.h:41
Status Pen::MultiplyTransform ( Matrix matrix,
MatrixOrder  order 
)
inline

Definition at line 176 of file gdipluspen.h.

177  {
178  return NotImplemented; // FIXME: not available: SetStatus(DllExports::GdipMultiplyPenTransform(pen, matrix ? matrix->matrix : NULL, order));
179  }
Status Pen::ResetTransform ( VOID  )
inline

Definition at line 181 of file gdipluspen.h.

182  {
184  }
Status SetStatus(Status status) const
Definition: gdipluspen.h:287
GpStatus WINGDIPAPI GdipResetPenTransform(GpPen *pen)
Definition: pen.c:420
GpPen * pen
Definition: gdipluspen.h:282
Status Pen::RotateTransform ( REAL  angle,
MatrixOrder  order 
)
inline

Definition at line 186 of file gdipluspen.h.

187  {
188  return NotImplemented; // FIXME: not available: SetStatus(DllExports::GdipRotatePenTransform(pen, angle, order));
189  }
Status Pen::ScaleTransform ( REAL  sx,
REAL  sy,
MatrixOrder  order 
)
inline

Definition at line 191 of file gdipluspen.h.

192  {
194  }
GLuint GLdouble GLdouble GLint GLint order
Definition: glext.h:11194
Status SetStatus(Status status) const
Definition: gdipluspen.h:287
GpPen * pen
Definition: gdipluspen.h:282
GpStatus WINGDIPAPI GdipScalePenTransform(GpPen *pen, REAL sx, REAL sy, GpMatrixOrder order)
Definition: pen.c:476
Status Pen::SetAlignment ( PenAlignment  penAlignment)
inline

Definition at line 196 of file gdipluspen.h.

197  {
198  return SetStatus(DllExports::GdipSetPenMode(pen, penAlignment));
199  }
GpStatus WINGDIPAPI GdipSetPenMode(GpPen *pen, GpPenAlignment mode)
Definition: pen.c:777
Status SetStatus(Status status) const
Definition: gdipluspen.h:287
GpPen * pen
Definition: gdipluspen.h:282
Status Pen::SetBrush ( const Brush brush)
inline

Definition at line 201 of file gdipluspen.h.

202  {
203  return SetStatus(DllExports::GdipSetPenBrushFill(pen, brush ? brush->brush : NULL));
204  }
GpBrush * brush
Definition: gdiplusbrush.h:49
smooth NULL
Definition: ftsmooth.c:416
Status SetStatus(Status status) const
Definition: gdipluspen.h:287
GpStatus WINGDIPAPI GdipSetPenBrushFill(GpPen *pen, GpBrush *brush)
Definition: pen.c:522
GpPen * pen
Definition: gdipluspen.h:282
Status Pen::SetColor ( const Color color)
inline

Definition at line 206 of file gdipluspen.h.

207  {
208  return SetStatus(DllExports::GdipSetPenColor(pen, color.GetValue()));
209  }
GpStatus WINGDIPAPI GdipSetPenColor(GpPen *pen, ARGB argb)
Definition: pen.c:533
Status SetStatus(Status status) const
Definition: gdipluspen.h:287
GpPen * pen
Definition: gdipluspen.h:282
Status Pen::SetCompoundArray ( const REAL compoundArray,
INT  count 
)
inline

Definition at line 211 of file gdipluspen.h.

212  {
213  return SetStatus(DllExports::GdipSetPenCompoundArray(pen, compoundArray, count));
214  }
GLuint GLuint GLsizei count
Definition: gl.h:1545
Status SetStatus(Status status) const
Definition: gdipluspen.h:287
GpPen * pen
Definition: gdipluspen.h:282
GpStatus WINGDIPAPI GdipSetPenCompoundArray(GpPen *pen, GDIPCONST REAL *dash, INT count)
Definition: pen.c:556
Status Pen::SetCustomEndCap ( const CustomLineCap customCap)
inline

Definition at line 216 of file gdipluspen.h.

217  {
218  return NotImplemented;
219  }
Status Pen::SetCustomStartCap ( const CustomLineCap customCap)
inline

Definition at line 221 of file gdipluspen.h.

222  {
223  return NotImplemented;
224  }
Status Pen::SetDashCap ( DashCap  dashCap)
inline

Definition at line 226 of file gdipluspen.h.

227  {
229  }
Status SetStatus(Status status) const
Definition: gdipluspen.h:287
GpPen * pen
Definition: gdipluspen.h:282
GpStatus WINGDIPAPI GdipSetPenDashCap197819(GpPen *pen, GpDashCap dashCap)
Definition: pen.c:645
Status Pen::SetDashOffset ( REAL  dashOffset)
inline

Definition at line 231 of file gdipluspen.h.

232  {
233  return SetStatus(DllExports::GdipSetPenDashOffset(pen, dashOffset));
234  }
Status SetStatus(Status status) const
Definition: gdipluspen.h:287
GpStatus WINGDIPAPI GdipSetPenDashOffset(GpPen *pen, REAL offset)
Definition: pen.c:658
GpPen * pen
Definition: gdipluspen.h:282
Status Pen::SetDashPattern ( const REAL dashArray,
INT  count 
)
inline

Definition at line 236 of file gdipluspen.h.

237  {
239  }
GLuint GLuint GLsizei count
Definition: gl.h:1545
Status SetStatus(Status status) const
Definition: gdipluspen.h:287
GLsizei const GLfloat * dashArray
Definition: glext.h:11725
GpPen * pen
Definition: gdipluspen.h:282
GpStatus WINGDIPAPI GdipSetPenDashArray(GpPen *pen, GDIPCONST REAL *dash, INT count)
Definition: pen.c:605
Status Pen::SetDashStyle ( DashStyle  dashStyle)
inline

Definition at line 241 of file gdipluspen.h.

242  {
243  return SetStatus(DllExports::GdipSetPenDashStyle(pen, dashStyle));
244  }
Status SetStatus(Status status) const
Definition: gdipluspen.h:287
GpPen * pen
Definition: gdipluspen.h:282
GpStatus WINGDIPAPI GdipSetPenDashStyle(GpPen *pen, GpDashStyle dash)
Definition: pen.c:670
Status Pen::SetEndCap ( LineCap  endCap)
inline

Definition at line 246 of file gdipluspen.h.

247  {
248  return SetStatus(DllExports::GdipSetPenEndCap(pen, endCap));
249  }
GpStatus WINGDIPAPI GdipSetPenEndCap(GpPen *pen, GpLineCap cap)
Definition: pen.c:691
Status SetStatus(Status status) const
Definition: gdipluspen.h:287
GpPen * pen
Definition: gdipluspen.h:282
Status Pen::SetLineCap ( LineCap  startCap,
LineCap  endCap,
DashCap  dashCap 
)
inline

Definition at line 251 of file gdipluspen.h.

252  {
253  return SetStatus(DllExports::GdipSetPenLineCap197819(pen, startCap, endCap, dashCap));
254  }
GpStatus WINGDIPAPI GdipSetPenLineCap197819(GpPen *pen, GpLineCap start, GpLineCap end, GpDashCap dash)
Definition: pen.c:706
Status SetStatus(Status status) const
Definition: gdipluspen.h:287
GpPen * pen
Definition: gdipluspen.h:282
Status Pen::SetLineJoin ( LineJoin  lineJoin)
inline

Definition at line 256 of file gdipluspen.h.

257  {
258  return SetStatus(DllExports::GdipSetPenLineJoin(pen, lineJoin));
259  }
GpStatus WINGDIPAPI GdipSetPenLineJoin(GpPen *pen, GpLineJoin join)
Definition: pen.c:728
Status SetStatus(Status status) const
Definition: gdipluspen.h:287
GpPen * pen
Definition: gdipluspen.h:282
Status Pen::SetMiterLimit ( REAL  miterLimit)
inline

Definition at line 261 of file gdipluspen.h.

262  {
263  return SetStatus(DllExports::GdipSetPenMiterLimit(pen, miterLimit));
264  }
GpStatus WINGDIPAPI GdipSetPenMiterLimit(GpPen *pen, REAL limit)
Definition: pen.c:741
Status SetStatus(Status status) const
Definition: gdipluspen.h:287
GpPen * pen
Definition: gdipluspen.h:282
Status Pen::SetStartCap ( LineCap  startCap)
inline

Definition at line 266 of file gdipluspen.h.

267  {
268  return SetStatus(DllExports::GdipSetPenStartCap(pen, startCap));
269  }
GpStatus WINGDIPAPI GdipSetPenStartCap(GpPen *pen, GpLineCap cap)
Definition: pen.c:753
Status SetStatus(Status status) const
Definition: gdipluspen.h:287
GpPen * pen
Definition: gdipluspen.h:282
Status Pen::SetTransform ( const Matrix matrix)
inline

Definition at line 271 of file gdipluspen.h.

272  {
273  return SetStatus(DllExports::GdipSetPenTransform(pen, matrix ? matrix->matrix : NULL));
274  }
GpMatrix * matrix
smooth NULL
Definition: ftsmooth.c:416
GpStatus WINGDIPAPI GdipSetPenTransform(GpPen *pen, GpMatrix *matrix)
Definition: pen.c:432
Status SetStatus(Status status) const
Definition: gdipluspen.h:287
GpPen * pen
Definition: gdipluspen.h:282
Status Pen::SetWidth ( REAL  width)
inline

Definition at line 276 of file gdipluspen.h.

277  {
279  }
GpStatus WINGDIPAPI GdipSetPenWidth(GpPen *pen, REAL width)
Definition: pen.c:766
GLint GLint GLsizei width
Definition: gl.h:1546
Status SetStatus(Status status) const
Definition: gdipluspen.h:287
GpPen * pen
Definition: gdipluspen.h:282

Friends And Related Function Documentation

friend class Graphics
friend

Definition at line 26 of file gdipluspen.h.

Member Data Documentation

Status Pen::status
mutableprivate

Definition at line 285 of file gdipluspen.h.

Referenced by GetColor(), GetLastStatus(), and SetStatus().


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