ReactOS  0.4.12-dev-36-g472787f
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() [1/2]

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

Definition at line 29 of file gdipluspen.h.

30  {
31  }

◆ Pen() [2/2]

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  }
GLint GLint GLsizei width
Definition: gl.h:1546
Unit
Definition: gdiplusenums.h:25
png_const_structrp png_const_inforp int * unit
Definition: png.h:2192
smooth NULL
Definition: ftsmooth.c:416
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

◆ Clone()

Pen* Pen::Clone ( VOID  )
inline

Definition at line 43 of file gdipluspen.h.

44  {
45  return NULL;
46  }
smooth NULL
Definition: ftsmooth.c:416

◆ GetAlignment()

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
GpPen * pen
Definition: gdipluspen.h:282
Status SetStatus(Status status) const
Definition: gdipluspen.h:287

◆ GetBrush()

Brush* Pen::GetBrush ( VOID  )
inline

Definition at line 55 of file gdipluspen.h.

56  {
57  return NULL;
58  }
smooth NULL
Definition: ftsmooth.c:416

◆ GetColor()

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
Definition: gdiplustypes.h:24
GpPen * pen
Definition: gdipluspen.h:282
Definition: ps.c:97
DWORD ARGB
Status SetStatus(Status status) const
Definition: gdipluspen.h:287

◆ GetCompoundArray()

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  }

◆ GetCompoundArrayCount()

INT Pen::GetCompoundArrayCount ( VOID  )
inline

Definition at line 74 of file gdipluspen.h.

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

◆ GetCustomEndCap()

Status Pen::GetCustomEndCap ( CustomLineCap customCap)
inline

Definition at line 81 of file gdipluspen.h.

82  {
83  return NotImplemented;
84  }

◆ GetCustomStartCap()

Status Pen::GetCustomStartCap ( CustomLineCap customCap)
inline

Definition at line 86 of file gdipluspen.h.

87  {
88  return NotImplemented;
89  }

◆ GetDashCap()

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
GpPen * pen
Definition: gdipluspen.h:282
GpStatus WINGDIPAPI GdipGetPenDashCap197819(GpPen *pen, GpDashCap *dashCap)
Definition: pen.c:276
Status SetStatus(Status status) const
Definition: gdipluspen.h:287

◆ GetDashOffset()

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
GpPen * pen
Definition: gdipluspen.h:282
float REAL
Definition: types.h:41
Status SetStatus(Status status) const
Definition: gdipluspen.h:287

◆ GetDashPattern()

Status Pen::GetDashPattern ( REAL dashArray,
INT  count 
)
inline

Definition at line 105 of file gdipluspen.h.

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

◆ GetDashPatternCount()

INT Pen::GetDashPatternCount ( VOID  )
inline

Definition at line 110 of file gdipluspen.h.

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

◆ GetDashStyle()

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
DashStyle
Definition: gdiplusenums.h:175
GpPen * pen
Definition: gdipluspen.h:282
Status SetStatus(Status status) const
Definition: gdipluspen.h:287

◆ GetEndCap()

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
GpStatus WINGDIPAPI GdipGetPenEndCap(GpPen *pen, GpLineCap *endCap)
Definition: pen.c:324
GpPen * pen
Definition: gdipluspen.h:282
Status SetStatus(Status status) const
Definition: gdipluspen.h:287

◆ GetLastStatus()

Status Pen::GetLastStatus ( VOID  )
inline

Definition at line 131 of file gdipluspen.h.

132  {
133  return status;
134  }
Status status
Definition: gdipluspen.h:285

◆ GetLineJoin()

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
GpPen * pen
Definition: gdipluspen.h:282
GpStatus WINGDIPAPI GdipGetPenLineJoin(GpPen *pen, GpLineJoin *lineJoin)
Definition: pen.c:348
Status SetStatus(Status status) const
Definition: gdipluspen.h:287

◆ GetMiterLimit()

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
GpPen * pen
Definition: gdipluspen.h:282
float REAL
Definition: types.h:41
Status SetStatus(Status status) const
Definition: gdipluspen.h:287

◆ GetPenType()

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
PenType
Definition: gdiplusenums.h:93
GpStatus WINGDIPAPI GdipGetPenFillType(GpPen *pen, GpPenType *type)
Definition: pen.c:336
GpPen * pen
Definition: gdipluspen.h:282
Status SetStatus(Status status) const
Definition: gdipluspen.h:287

◆ GetStartCap()

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
GpPen * pen
Definition: gdipluspen.h:282
Status SetStatus(Status status) const
Definition: gdipluspen.h:287

◆ GetTransform()

Status Pen::GetTransform ( Matrix matrix)
inline

Definition at line 164 of file gdipluspen.h.

165  {
166  return NotImplemented;
167  }

◆ GetWidth()

REAL Pen::GetWidth ( VOID  )
inline

Definition at line 169 of file gdipluspen.h.

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

◆ MultiplyTransform()

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  }

◆ ResetTransform()

Status Pen::ResetTransform ( VOID  )
inline

Definition at line 181 of file gdipluspen.h.

182  {
184  }
GpStatus WINGDIPAPI GdipResetPenTransform(GpPen *pen)
Definition: pen.c:420
GpPen * pen
Definition: gdipluspen.h:282
Status SetStatus(Status status) const
Definition: gdipluspen.h:287

◆ RotateTransform()

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  }

◆ ScaleTransform()

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
GpPen * pen
Definition: gdipluspen.h:282
GpStatus WINGDIPAPI GdipScalePenTransform(GpPen *pen, REAL sx, REAL sy, GpMatrixOrder order)
Definition: pen.c:471
Status SetStatus(Status status) const
Definition: gdipluspen.h:287

◆ SetAlignment()

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:772
GpPen * pen
Definition: gdipluspen.h:282
Status SetStatus(Status status) const
Definition: gdipluspen.h:287

◆ SetBrush()

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
GpStatus WINGDIPAPI GdipSetPenBrushFill(GpPen *pen, GpBrush *brush)
Definition: pen.c:517
GpPen * pen
Definition: gdipluspen.h:282
Status SetStatus(Status status) const
Definition: gdipluspen.h:287

◆ SetColor()

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:528
GpPen * pen
Definition: gdipluspen.h:282
Status SetStatus(Status status) const
Definition: gdipluspen.h:287

◆ SetCompoundArray()

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
GpPen * pen
Definition: gdipluspen.h:282
GpStatus WINGDIPAPI GdipSetPenCompoundArray(GpPen *pen, GDIPCONST REAL *dash, INT count)
Definition: pen.c:551
Status SetStatus(Status status) const
Definition: gdipluspen.h:287

◆ SetCustomEndCap()

Status Pen::SetCustomEndCap ( const CustomLineCap customCap)
inline

Definition at line 216 of file gdipluspen.h.

217  {
218  return NotImplemented;
219  }

◆ SetCustomStartCap()

Status Pen::SetCustomStartCap ( const CustomLineCap customCap)
inline

Definition at line 221 of file gdipluspen.h.

222  {
223  return NotImplemented;
224  }

◆ SetDashCap()

Status Pen::SetDashCap ( DashCap  dashCap)
inline

Definition at line 226 of file gdipluspen.h.

227  {
229  }
GpPen * pen
Definition: gdipluspen.h:282
GpStatus WINGDIPAPI GdipSetPenDashCap197819(GpPen *pen, GpDashCap dashCap)
Definition: pen.c:640
Status SetStatus(Status status) const
Definition: gdipluspen.h:287

◆ SetDashOffset()

Status Pen::SetDashOffset ( REAL  dashOffset)
inline

Definition at line 231 of file gdipluspen.h.

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

◆ SetDashPattern()

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
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:600
Status SetStatus(Status status) const
Definition: gdipluspen.h:287

◆ SetDashStyle()

Status Pen::SetDashStyle ( DashStyle  dashStyle)
inline

Definition at line 241 of file gdipluspen.h.

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

◆ SetEndCap()

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:686
GpPen * pen
Definition: gdipluspen.h:282
Status SetStatus(Status status) const
Definition: gdipluspen.h:287

◆ SetLineCap()

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:701
GpPen * pen
Definition: gdipluspen.h:282
Status SetStatus(Status status) const
Definition: gdipluspen.h:287

◆ SetLineJoin()

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:723
GpPen * pen
Definition: gdipluspen.h:282
Status SetStatus(Status status) const
Definition: gdipluspen.h:287

◆ SetMiterLimit()

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:736
GpPen * pen
Definition: gdipluspen.h:282
Status SetStatus(Status status) const
Definition: gdipluspen.h:287

◆ SetStartCap()

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:748
GpPen * pen
Definition: gdipluspen.h:282
Status SetStatus(Status status) const
Definition: gdipluspen.h:287

◆ SetStatus()

◆ SetTransform()

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
GpPen * pen
Definition: gdipluspen.h:282
Status SetStatus(Status status) const
Definition: gdipluspen.h:287

◆ SetWidth()

Status Pen::SetWidth ( REAL  width)
inline

Definition at line 276 of file gdipluspen.h.

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

Friends And Related Function Documentation

◆ Graphics

friend class Graphics
friend

Definition at line 26 of file gdipluspen.h.

Member Data Documentation

◆ pen

◆ status

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: