ReactOS  0.4.14-dev-991-g696cdc6
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)
 
 ~Pen ()
 
PenClone ()
 
PenAlignment GetAlignment ()
 
BrushGetBrush ()
 
Status GetColor (Color *color)
 
Status GetCompoundArray (REAL *compoundArray, INT count)
 
INT GetCompoundArrayCount ()
 
Status GetCustomEndCap (CustomLineCap *customCap)
 
Status GetCustomStartCap (CustomLineCap *customCap)
 
DashCap GetDashCap ()
 
REAL GetDashOffset ()
 
Status GetDashPattern (REAL *dashArray, INT count)
 
INT GetDashPatternCount ()
 
DashStyle GetDashStyle ()
 
LineCap GetEndCap ()
 
Status GetLastStatus () const
 
LineJoin GetLineJoin ()
 
REAL GetMiterLimit ()
 
PenType GetPenType ()
 
LineCap GetStartCap ()
 
Status GetTransform (Matrix *matrix)
 
REAL GetWidth ()
 
Status MultiplyTransform (Matrix *matrix, MatrixOrder order=MatrixOrderPrepend)
 
Status ResetTransform ()
 
Status RotateTransform (REAL angle, MatrixOrder order=MatrixOrderPrepend)
 
Status ScaleTransform (REAL sx, REAL sy, MatrixOrder order=MatrixOrderPrepend)
 
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)
 
Status TranslateTransform (REAL dx, REAL dy, MatrixOrder order=MatrixOrderPrepend)
 
- 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

Status SetStatus (Status status) const
 
 Pen (GpPen *pen, Status status)
 
VOID SetNativePen (GpPen *pen)
 

Protected Attributes

GpPennativePen
 
Status lastStatus
 

Private Member Functions

 Pen (const Pen &)
 
Penoperator= (const Pen &)
 

Friends

class Graphics
 
class GraphicsPath
 
GpPen *& getNat (const Pen *pen)
 

Detailed Description

Definition at line 22 of file gdipluspen.h.

Constructor & Destructor Documentation

◆ Pen() [1/4]

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

Definition at line 28 of file gdipluspen.h.

28  : nativePen(NULL)
29  {
31  }
GLint GLint GLsizei width
Definition: gl.h:1546
GpPen * nativePen
Definition: gdipluspen.h:359
friend GpPen *& getNat(const Pen *pen)
Definition: gdipluspen.h:388
smooth NULL
Definition: ftsmooth.c:416
Status lastStatus
Definition: gdipluspen.h:360
GpStatus WINGDIPAPI GdipCreatePen2(GpBrush *brush, REAL width, GpUnit unit, GpPen **pen)
Definition: pen.c:150

Referenced by Clone().

◆ Pen() [2/4]

Pen::Pen ( const Color color,
REAL  width = 1.0f 
)
inline

Definition at line 33 of file gdipluspen.h.

33  : nativePen(NULL)
34  {
36  }
GLint GLint GLsizei width
Definition: gl.h:1546
GpPen * nativePen
Definition: gdipluspen.h:359
GLuint color
Definition: glext.h:6243
smooth NULL
Definition: ftsmooth.c:416
Status lastStatus
Definition: gdipluspen.h:360
GpStatus WINGDIPAPI GdipCreatePen1(ARGB color, REAL width, GpUnit unit, GpPen **pen)
Definition: pen.c:136

◆ ~Pen()

Pen::~Pen ( )
inline

Definition at line 38 of file gdipluspen.h.

39  {
41  }
GpPen * nativePen
Definition: gdipluspen.h:359
GpStatus WINGDIPAPI GdipDeletePen(GpPen *pen)
Definition: pen.c:192

◆ Pen() [3/4]

Pen::Pen ( GpPen pen,
Status  status 
)
inlineprotected

Definition at line 370 of file gdipluspen.h.

370  : nativePen(pen), lastStatus(status)
371  {
372  }
GpPen * nativePen
Definition: gdipluspen.h:359
Status lastStatus
Definition: gdipluspen.h:360
Definition: ps.c:97

◆ Pen() [4/4]

Pen::Pen ( const Pen )
private

Member Function Documentation

◆ Clone()

Pen* Pen::Clone ( )
inline

Definition at line 44 of file gdipluspen.h.

45  {
46  GpPen *clonePen = NULL;
48  if (lastStatus != Ok)
49  return NULL;
50  Pen *newPen = new Pen(clonePen, lastStatus);
51  if (!newPen)
52  DllExports::GdipDeletePen(clonePen);
53  return newPen;
54  }
GpPen * nativePen
Definition: gdipluspen.h:359
GpStatus WINGDIPAPI GdipClonePen(GpPen *pen, GpPen **clonepen)
Definition: pen.c:88
smooth NULL
Definition: ftsmooth.c:416
Status lastStatus
Definition: gdipluspen.h:360
Pen(const Brush *brush, REAL width=1.0f)
Definition: gdipluspen.h:28
GpStatus WINGDIPAPI GdipDeletePen(GpPen *pen)
Definition: pen.c:192
Definition: gdipluspen.h:22
Status SetStatus(Status status) const
Definition: gdipluspen.h:363

◆ GetAlignment()

PenAlignment Pen::GetAlignment ( )
inline

Definition at line 57 of file gdipluspen.h.

58  {
59  PenAlignment penAlignment;
61  return penAlignment;
62  }
PenAlignment
Definition: gdiplusenums.h:153
GpPen * nativePen
Definition: gdipluspen.h:359
GpStatus WINGDIPAPI GdipGetPenMode(GpPen *pen, GpPenAlignment *mode)
Definition: pen.c:360
Status SetStatus(Status status) const
Definition: gdipluspen.h:363

◆ GetBrush()

Brush* Pen::GetBrush ( )
inline

Definition at line 65 of file gdipluspen.h.

66  {
67  // FIXME
68  return NULL;
69  }
smooth NULL
Definition: ftsmooth.c:416

◆ GetColor()

Status Pen::GetColor ( Color color)
inline

Definition at line 72 of file gdipluspen.h.

73  {
74  if (!color)
76 
77  ARGB argb;
79  color->SetValue(argb);
80  return lastStatus;
81  }
GpPen * nativePen
Definition: gdipluspen.h:359
GpStatus WINGDIPAPI GdipGetPenColor(GpPen *pen, ARGB *argb)
Definition: pen.c:217
GLuint color
Definition: glext.h:6243
Status lastStatus
Definition: gdipluspen.h:360
DWORD ARGB
Status SetStatus(Status status) const
Definition: gdipluspen.h:363

◆ GetCompoundArray()

Status Pen::GetCompoundArray ( REAL compoundArray,
INT  count 
)
inline

Definition at line 84 of file gdipluspen.h.

85  {
86  if (!compoundArray || count <= 0)
88 #if 1
89  return SetStatus(NotImplemented);
90 #else
91  return SetStatus(DllExports::GdipGetPenCompoundArray(nativePen, compoundArray, count));
92 #endif
93  }
GpPen * nativePen
Definition: gdipluspen.h:359
GLuint GLuint GLsizei count
Definition: gl.h:1545
Status SetStatus(Status status) const
Definition: gdipluspen.h:363

◆ GetCompoundArrayCount()

INT Pen::GetCompoundArrayCount ( )
inline

Definition at line 96 of file gdipluspen.h.

97  {
98  INT count = 0;
100  return count;
101  }
GpPen * nativePen
Definition: gdipluspen.h:359
GLuint GLuint GLsizei count
Definition: gl.h:1545
int32_t INT
Definition: typedefs.h:57
GpStatus WINGDIPAPI GdipGetPenCompoundCount(GpPen *pen, INT *count)
Definition: pen.c:526
Status SetStatus(Status status) const
Definition: gdipluspen.h:363

◆ GetCustomEndCap()

Status Pen::GetCustomEndCap ( CustomLineCap customCap)
inline

Definition at line 104 of file gdipluspen.h.

105  {
106  if (!customCap)
107  return SetStatus(InvalidParameter);
108 
110  }
GpStatus WINGDIPAPI GdipGetPenCustomEndCap(GpPen *pen, GpCustomLineCap **customCap)
Definition: pen.c:230
GpPen * nativePen
Definition: gdipluspen.h:359
friend GpPen *& getNat(const Pen *pen)
Definition: gdipluspen.h:388
Status SetStatus(Status status) const
Definition: gdipluspen.h:363

◆ GetCustomStartCap()

Status Pen::GetCustomStartCap ( CustomLineCap customCap)
inline

Definition at line 113 of file gdipluspen.h.

114  {
115  if (!customCap)
116  return SetStatus(InvalidParameter);
117 
119  }
GpPen * nativePen
Definition: gdipluspen.h:359
friend GpPen *& getNat(const Pen *pen)
Definition: gdipluspen.h:388
GpStatus WINGDIPAPI GdipGetPenCustomStartCap(GpPen *pen, GpCustomLineCap **customCap)
Definition: pen.c:245
Status SetStatus(Status status) const
Definition: gdipluspen.h:363

◆ GetDashCap()

DashCap Pen::GetDashCap ( )
inline

Definition at line 122 of file gdipluspen.h.

123  {
124  DashCap dashCap;
126  return dashCap;
127  }
GpPen * nativePen
Definition: gdipluspen.h:359
DashCap
Definition: gdiplusenums.h:169
GpStatus WINGDIPAPI GdipGetPenDashCap197819(GpPen *pen, GpDashCap *dashCap)
Definition: pen.c:276
Status SetStatus(Status status) const
Definition: gdipluspen.h:363

◆ GetDashOffset()

REAL Pen::GetDashOffset ( )
inline

Definition at line 130 of file gdipluspen.h.

131  {
132  REAL offset;
134  return offset;
135  }
GpPen * nativePen
Definition: gdipluspen.h:359
GLintptr offset
Definition: glext.h:5920
GpStatus WINGDIPAPI GdipGetPenDashOffset(GpPen *pen, REAL *offset)
Definition: pen.c:300
float REAL
Definition: types.h:41
Status SetStatus(Status status) const
Definition: gdipluspen.h:363

◆ GetDashPattern()

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

Definition at line 138 of file gdipluspen.h.

139  {
140  if (dashArray == NULL || count <= 0)
141  return SetStatus(InvalidParameter);
142 
144  }
GpPen * nativePen
Definition: gdipluspen.h:359
GLuint GLuint GLsizei count
Definition: gl.h:1545
GpStatus WINGDIPAPI GdipGetPenDashArray(GpPen *pen, REAL *dash, INT count)
Definition: pen.c:260
smooth NULL
Definition: ftsmooth.c:416
GLsizei const GLfloat * dashArray
Definition: glext.h:11725
Status SetStatus(Status status) const
Definition: gdipluspen.h:363

◆ GetDashPatternCount()

INT Pen::GetDashPatternCount ( )
inline

Definition at line 147 of file gdipluspen.h.

148  {
149  INT count = 0;
151  return count;
152  }
GpPen * nativePen
Definition: gdipluspen.h:359
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:57
Status SetStatus(Status status) const
Definition: gdipluspen.h:363

◆ GetDashStyle()

DashStyle Pen::GetDashStyle ( )
inline

Definition at line 155 of file gdipluspen.h.

156  {
157  DashStyle dashStyle;
159  return dashStyle;
160  }
GpStatus WINGDIPAPI GdipGetPenDashStyle(GpPen *pen, GpDashStyle *dash)
Definition: pen.c:312
GpPen * nativePen
Definition: gdipluspen.h:359
DashStyle
Definition: gdiplusenums.h:176
Status SetStatus(Status status) const
Definition: gdipluspen.h:363

◆ GetEndCap()

LineCap Pen::GetEndCap ( )
inline

Definition at line 163 of file gdipluspen.h.

164  {
165  LineCap endCap;
167  return endCap;
168  }
GpPen * nativePen
Definition: gdipluspen.h:359
LineCap
Definition: gdiplusenums.h:59
GpStatus WINGDIPAPI GdipGetPenEndCap(GpPen *pen, GpLineCap *endCap)
Definition: pen.c:324
Status SetStatus(Status status) const
Definition: gdipluspen.h:363

◆ GetLastStatus()

Status Pen::GetLastStatus ( ) const
inline

Definition at line 171 of file gdipluspen.h.

172  {
173  return lastStatus;
174  }
Status lastStatus
Definition: gdipluspen.h:360

◆ GetLineJoin()

LineJoin Pen::GetLineJoin ( )
inline

Definition at line 177 of file gdipluspen.h.

178  {
179  LineJoin lineJoin;
181  return lineJoin;
182  }
GpPen * nativePen
Definition: gdipluspen.h:359
LineJoin
Definition: gdiplusenums.h:104
GpStatus WINGDIPAPI GdipGetPenLineJoin(GpPen *pen, GpLineJoin *lineJoin)
Definition: pen.c:348
Status SetStatus(Status status) const
Definition: gdipluspen.h:363

◆ GetMiterLimit()

REAL Pen::GetMiterLimit ( )
inline

Definition at line 185 of file gdipluspen.h.

186  {
187  REAL miterLimit;
189  return miterLimit;
190  }
GpStatus WINGDIPAPI GdipGetPenMiterLimit(GpPen *pen, REAL *miterLimit)
Definition: pen.c:372
GpPen * nativePen
Definition: gdipluspen.h:359
float REAL
Definition: types.h:41
Status SetStatus(Status status) const
Definition: gdipluspen.h:363

◆ GetPenType()

PenType Pen::GetPenType ( )
inline

Definition at line 193 of file gdipluspen.h.

194  {
195  PenType type;
197  return type;
198  }
GpPen * nativePen
Definition: gdipluspen.h:359
GLuint GLuint GLsizei GLenum type
Definition: gl.h:1545
PenType
Definition: gdiplusenums.h:94
GpStatus WINGDIPAPI GdipGetPenFillType(GpPen *pen, GpPenType *type)
Definition: pen.c:336
Status SetStatus(Status status) const
Definition: gdipluspen.h:363

◆ GetStartCap()

LineCap Pen::GetStartCap ( )
inline

Definition at line 201 of file gdipluspen.h.

202  {
203  LineCap startCap;
205  return startCap;
206  }
GpPen * nativePen
Definition: gdipluspen.h:359
LineCap
Definition: gdiplusenums.h:59
GpStatus WINGDIPAPI GdipGetPenStartCap(GpPen *pen, GpLineCap *startCap)
Definition: pen.c:384
Status SetStatus(Status status) const
Definition: gdipluspen.h:363

◆ GetTransform()

Status Pen::GetTransform ( Matrix matrix)
inline

Definition at line 209 of file gdipluspen.h.

210  {
212  }
GpStatus WINGDIPAPI GdipGetPenTransform(GpPen *pen, GpMatrix *matrix)
Definition: pen.c:449
GpPen * nativePen
Definition: gdipluspen.h:359
GLuint GLenum matrix
Definition: glext.h:9407
friend GpPen *& getNat(const Pen *pen)
Definition: gdipluspen.h:388
Status SetStatus(Status status) const
Definition: gdipluspen.h:363

◆ GetWidth()

REAL Pen::GetWidth ( )
inline

Definition at line 215 of file gdipluspen.h.

216  {
217  REAL width;
219  return width;
220  }
GLint GLint GLsizei width
Definition: gl.h:1546
GpPen * nativePen
Definition: gdipluspen.h:359
GpStatus WINGDIPAPI GdipGetPenWidth(GpPen *pen, REAL *width)
Definition: pen.c:408
float REAL
Definition: types.h:41
Status SetStatus(Status status) const
Definition: gdipluspen.h:363

◆ MultiplyTransform()

Status Pen::MultiplyTransform ( Matrix matrix,
MatrixOrder  order = MatrixOrderPrepend 
)
inline

Definition at line 223 of file gdipluspen.h.

224  {
226  }
GLuint GLdouble GLdouble GLint GLint order
Definition: glext.h:11194
GpPen * nativePen
Definition: gdipluspen.h:359
GLuint GLenum matrix
Definition: glext.h:9407
friend GpPen *& getNat(const Pen *pen)
Definition: gdipluspen.h:388
GpStatus WINGDIPAPI GdipMultiplyPenTransform(GpPen *pen, GDIPCONST GpMatrix *matrix, GpMatrixOrder order)
Definition: pen.c:491
Status SetStatus(Status status) const
Definition: gdipluspen.h:363

◆ operator=()

Pen& Pen::operator= ( const Pen )
private

◆ ResetTransform()

Status Pen::ResetTransform ( )
inline

Definition at line 229 of file gdipluspen.h.

230  {
232  }
GpPen * nativePen
Definition: gdipluspen.h:359
GpStatus WINGDIPAPI GdipResetPenTransform(GpPen *pen)
Definition: pen.c:420
Status SetStatus(Status status) const
Definition: gdipluspen.h:363

◆ RotateTransform()

Status Pen::RotateTransform ( REAL  angle,
MatrixOrder  order = MatrixOrderPrepend 
)
inline

Definition at line 235 of file gdipluspen.h.

236  {
238  }
GLuint GLdouble GLdouble GLint GLint order
Definition: glext.h:11194
GpPen * nativePen
Definition: gdipluspen.h:359
GLfloat angle
Definition: glext.h:10853
GpStatus WINGDIPAPI GdipRotatePenTransform(GpPen *pen, REAL angle, GpMatrixOrder order)
Definition: pen.c:481
Status SetStatus(Status status) const
Definition: gdipluspen.h:363

◆ ScaleTransform()

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

Definition at line 241 of file gdipluspen.h.

242  {
244  }
GLuint GLdouble GLdouble GLint GLint order
Definition: glext.h:11194
GpPen * nativePen
Definition: gdipluspen.h:359
GpStatus WINGDIPAPI GdipScalePenTransform(GpPen *pen, REAL sx, REAL sy, GpMatrixOrder order)
Definition: pen.c:471
Status SetStatus(Status status) const
Definition: gdipluspen.h:363

◆ SetAlignment()

Status Pen::SetAlignment ( PenAlignment  penAlignment)
inline

Definition at line 247 of file gdipluspen.h.

248  {
249  return SetStatus(DllExports::GdipSetPenMode(nativePen, penAlignment));
250  }
GpPen * nativePen
Definition: gdipluspen.h:359
GpStatus WINGDIPAPI GdipSetPenMode(GpPen *pen, GpPenAlignment mode)
Definition: pen.c:757
Status SetStatus(Status status) const
Definition: gdipluspen.h:363

◆ SetBrush()

Status Pen::SetBrush ( const Brush brush)
inline

Definition at line 253 of file gdipluspen.h.

254  {
255  GpBrush *theBrush = brush ? getNat(brush) : NULL;
257  }
GpPen * nativePen
Definition: gdipluspen.h:359
friend GpPen *& getNat(const Pen *pen)
Definition: gdipluspen.h:388
smooth NULL
Definition: ftsmooth.c:416
GpStatus WINGDIPAPI GdipSetPenBrushFill(GpPen *pen, GpBrush *brush)
Definition: pen.c:502
Status SetStatus(Status status) const
Definition: gdipluspen.h:363

◆ SetColor()

Status Pen::SetColor ( const Color color)
inline

Definition at line 260 of file gdipluspen.h.

261  {
263  }
GpPen * nativePen
Definition: gdipluspen.h:359
GpStatus WINGDIPAPI GdipSetPenColor(GpPen *pen, ARGB argb)
Definition: pen.c:513
GLuint color
Definition: glext.h:6243
Status SetStatus(Status status) const
Definition: gdipluspen.h:363

◆ SetCompoundArray()

Status Pen::SetCompoundArray ( const REAL compoundArray,
INT  count 
)
inline

Definition at line 266 of file gdipluspen.h.

267  {
269  }
GpPen * nativePen
Definition: gdipluspen.h:359
GLuint GLuint GLsizei count
Definition: gl.h:1545
GpStatus WINGDIPAPI GdipSetPenCompoundArray(GpPen *pen, GDIPCONST REAL *dash, INT count)
Definition: pen.c:536
Status SetStatus(Status status) const
Definition: gdipluspen.h:363

◆ SetCustomEndCap()

Status Pen::SetCustomEndCap ( const CustomLineCap customCap)
inline

Definition at line 272 of file gdipluspen.h.

273  {
274  GpCustomLineCap *cap = customCap ? getNat(customCap) : NULL;
276  }
GpStatus WINGDIPAPI GdipSetPenCustomEndCap(GpPen *pen, GpCustomLineCap *customCap)
Definition: pen.c:547
GpPen * nativePen
Definition: gdipluspen.h:359
friend GpPen *& getNat(const Pen *pen)
Definition: gdipluspen.h:388
GLenum cap
Definition: glext.h:9639
smooth NULL
Definition: ftsmooth.c:416
Status SetStatus(Status status) const
Definition: gdipluspen.h:363

◆ SetCustomStartCap()

Status Pen::SetCustomStartCap ( const CustomLineCap customCap)
inline

Definition at line 279 of file gdipluspen.h.

280  {
281  GpCustomLineCap *cap = customCap ? getNat(customCap) : NULL;
283  }
GpPen * nativePen
Definition: gdipluspen.h:359
friend GpPen *& getNat(const Pen *pen)
Definition: gdipluspen.h:388
GLenum cap
Definition: glext.h:9639
smooth NULL
Definition: ftsmooth.c:416
GpStatus WINGDIPAPI GdipSetPenCustomStartCap(GpPen *pen, GpCustomLineCap *customCap)
Definition: pen.c:566
Status SetStatus(Status status) const
Definition: gdipluspen.h:363

◆ SetDashCap()

Status Pen::SetDashCap ( DashCap  dashCap)
inline

Definition at line 286 of file gdipluspen.h.

287  {
289  }
GpPen * nativePen
Definition: gdipluspen.h:359
GpStatus WINGDIPAPI GdipSetPenDashCap197819(GpPen *pen, GpDashCap dashCap)
Definition: pen.c:625
Status SetStatus(Status status) const
Definition: gdipluspen.h:363

◆ SetDashOffset()

Status Pen::SetDashOffset ( REAL  dashOffset)
inline

Definition at line 292 of file gdipluspen.h.

293  {
295  }
GpPen * nativePen
Definition: gdipluspen.h:359
GpStatus WINGDIPAPI GdipSetPenDashOffset(GpPen *pen, REAL offset)
Definition: pen.c:638
Status SetStatus(Status status) const
Definition: gdipluspen.h:363

◆ SetDashPattern()

Status Pen::SetDashPattern ( const REAL dashArray,
INT  count 
)
inline

Definition at line 298 of file gdipluspen.h.

299  {
301  }
GpPen * nativePen
Definition: gdipluspen.h:359
GLuint GLuint GLsizei count
Definition: gl.h:1545
GLsizei const GLfloat * dashArray
Definition: glext.h:11725
GpStatus WINGDIPAPI GdipSetPenDashArray(GpPen *pen, GDIPCONST REAL *dash, INT count)
Definition: pen.c:585
Status SetStatus(Status status) const
Definition: gdipluspen.h:363

◆ SetDashStyle()

Status Pen::SetDashStyle ( DashStyle  dashStyle)
inline

Definition at line 304 of file gdipluspen.h.

305  {
307  }
GpPen * nativePen
Definition: gdipluspen.h:359
GpStatus WINGDIPAPI GdipSetPenDashStyle(GpPen *pen, GpDashStyle dash)
Definition: pen.c:650
Status SetStatus(Status status) const
Definition: gdipluspen.h:363

◆ SetEndCap()

Status Pen::SetEndCap ( LineCap  endCap)
inline

Definition at line 310 of file gdipluspen.h.

311  {
313  }
GpPen * nativePen
Definition: gdipluspen.h:359
GpStatus WINGDIPAPI GdipSetPenEndCap(GpPen *pen, GpLineCap cap)
Definition: pen.c:671
Status SetStatus(Status status) const
Definition: gdipluspen.h:363

◆ SetLineCap()

Status Pen::SetLineCap ( LineCap  startCap,
LineCap  endCap,
DashCap  dashCap 
)
inline

Definition at line 316 of file gdipluspen.h.

317  {
318  return SetStatus(DllExports::GdipSetPenLineCap197819(nativePen, startCap, endCap, dashCap));
319  }
GpPen * nativePen
Definition: gdipluspen.h:359
GpStatus WINGDIPAPI GdipSetPenLineCap197819(GpPen *pen, GpLineCap start, GpLineCap end, GpDashCap dash)
Definition: pen.c:686
Status SetStatus(Status status) const
Definition: gdipluspen.h:363

◆ SetLineJoin()

Status Pen::SetLineJoin ( LineJoin  lineJoin)
inline

Definition at line 322 of file gdipluspen.h.

323  {
325  }
GpPen * nativePen
Definition: gdipluspen.h:359
GpStatus WINGDIPAPI GdipSetPenLineJoin(GpPen *pen, GpLineJoin join)
Definition: pen.c:708
Status SetStatus(Status status) const
Definition: gdipluspen.h:363

◆ SetMiterLimit()

Status Pen::SetMiterLimit ( REAL  miterLimit)
inline

Definition at line 328 of file gdipluspen.h.

329  {
331  }
GpPen * nativePen
Definition: gdipluspen.h:359
GpStatus WINGDIPAPI GdipSetPenMiterLimit(GpPen *pen, REAL limit)
Definition: pen.c:721
Status SetStatus(Status status) const
Definition: gdipluspen.h:363

◆ SetNativePen()

VOID Pen::SetNativePen ( GpPen pen)
inlineprotected

Definition at line 375 of file gdipluspen.h.

376  {
377  nativePen = pen;
378  }
GpPen * nativePen
Definition: gdipluspen.h:359

◆ SetStartCap()

Status Pen::SetStartCap ( LineCap  startCap)
inline

Definition at line 334 of file gdipluspen.h.

335  {
337  }
GpPen * nativePen
Definition: gdipluspen.h:359
GpStatus WINGDIPAPI GdipSetPenStartCap(GpPen *pen, GpLineCap cap)
Definition: pen.c:733
Status SetStatus(Status status) const
Definition: gdipluspen.h:363

◆ SetStatus()

◆ SetTransform()

Status Pen::SetTransform ( const Matrix matrix)
inline

Definition at line 340 of file gdipluspen.h.

341  {
344  }
GpPen * nativePen
Definition: gdipluspen.h:359
GLuint GLenum matrix
Definition: glext.h:9407
friend GpPen *& getNat(const Pen *pen)
Definition: gdipluspen.h:388
static const MAT2 mat
Definition: font.c:66
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:363

◆ SetWidth()

Status Pen::SetWidth ( REAL  width)
inline

Definition at line 347 of file gdipluspen.h.

348  {
350  }
GLint GLint GLsizei width
Definition: gl.h:1546
GpPen * nativePen
Definition: gdipluspen.h:359
GpStatus WINGDIPAPI GdipSetPenWidth(GpPen *pen, REAL width)
Definition: pen.c:746
Status SetStatus(Status status) const
Definition: gdipluspen.h:363

◆ TranslateTransform()

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

Definition at line 353 of file gdipluspen.h.

354  {
356  }
GLuint GLdouble GLdouble GLint GLint order
Definition: glext.h:11194
GpPen * nativePen
Definition: gdipluspen.h:359
GLint dy
Definition: linetemp.h:97
GpStatus WINGDIPAPI GdipTranslatePenTransform(GpPen *pen, REAL dx, REAL dy, GpMatrixOrder order)
Definition: pen.c:461
GLint dx
Definition: linetemp.h:97
Status SetStatus(Status status) const
Definition: gdipluspen.h:363

Friends And Related Function Documentation

◆ getNat

GpPen*& getNat ( const Pen pen)
friend

Definition at line 388 of file gdipluspen.h.

389  {
390  return const_cast<Pen *>(pen)->nativePen;
391  }

Referenced by GetCustomEndCap(), GetCustomStartCap(), GetTransform(), MultiplyTransform(), Pen(), SetBrush(), SetCustomEndCap(), SetCustomStartCap(), and SetTransform().

◆ Graphics

friend class Graphics
friend

Definition at line 25 of file gdipluspen.h.

◆ GraphicsPath

friend class GraphicsPath
friend

Definition at line 26 of file gdipluspen.h.

Member Data Documentation

◆ lastStatus

Status Pen::lastStatus
mutableprotected

Definition at line 360 of file gdipluspen.h.

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

◆ nativePen


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