ReactOS 0.4.16-dev-122-g325d74c
GraphicsPath Class Reference

#include <gdipluspath.h>

Inheritance diagram for GraphicsPath:
Collaboration diagram for GraphicsPath:

Public Member Functions

 GraphicsPath (const Point *points, const BYTE *types, INT count, FillMode fillMode)
 
 GraphicsPath (FillMode fillMode=FillModeAlternate)
 
 GraphicsPath (const PointF *points, const BYTE *types, INT count, FillMode fillMode=FillModeAlternate)
 
 ~GraphicsPath ()
 
Status AddArc (const Rect &rect, REAL startAngle, REAL sweepAngle)
 
Status AddArc (const RectF &rect, REAL startAngle, REAL sweepAngle)
 
Status AddArc (INT x, INT y, INT width, INT height, REAL startAngle, REAL sweepAngle)
 
Status AddArc (REAL x, REAL y, REAL width, REAL height, REAL startAngle, REAL sweepAngle)
 
Status AddBezier (const Point &pt1, const Point &pt2, const Point &pt3, const Point &pt4)
 
Status AddBezier (REAL x1, REAL y1, REAL x2, REAL y2, REAL x3, REAL y3, REAL x4, REAL y4)
 
Status AddBezier (const PointF &pt1, const PointF &pt2, const PointF &pt3, const PointF &pt4)
 
Status AddBezier (INT x1, INT y1, INT x2, INT y2, INT x3, INT y3, INT x4, INT y4)
 
Status AddBeziers (const Point *points, INT count)
 
Status AddBeziers (const PointF *points, INT count)
 
Status AddClosedCurve (const Point *points, INT count)
 
Status AddClosedCurve (const Point *points, INT count, REAL tension)
 
Status AddClosedCurve (const PointF *points, INT count, REAL tension)
 
Status AddClosedCurve (const PointF *points, INT count)
 
Status AddCurve (const Point *points, INT count)
 
Status AddCurve (const PointF *points, INT count, REAL tension)
 
Status AddCurve (const PointF *points, INT count)
 
Status AddCurve (const Point *points, INT count, INT offset, INT numberOfSegments, REAL tension)
 
Status AddCurve (const Point *points, INT count, REAL tension)
 
Status AddCurve (const PointF *points, INT count, INT offset, INT numberOfSegments, REAL tension)
 
Status AddEllipse (const Rect &rect)
 
Status AddEllipse (const RectF &rect)
 
Status AddEllipse (INT x, INT y, INT width, INT height)
 
Status AddEllipse (REAL x, REAL y, REAL width, REAL height)
 
Status AddLine (const Point &pt1, const Point &pt2)
 
Status AddLine (const PointF &pt1, const PointF &pt2)
 
Status AddLine (REAL x1, REAL y1, REAL x2, REAL y2)
 
Status AddLine (INT x1, INT y1, INT x2, INT y2)
 
Status AddLines (const Point *points, INT count)
 
Status AddLines (const PointF *points, INT count)
 
Status AddPath (const GraphicsPath *addingPath, BOOL connect)
 
Status AddPie (const Rect &rect, REAL startAngle, REAL sweepAngle)
 
Status AddPie (INT x, INT y, INT width, INT height, REAL startAngle, REAL sweepAngle)
 
Status AddPie (REAL x, REAL y, REAL width, REAL height, REAL startAngle, REAL sweepAngle)
 
Status AddPie (const RectF &rect, REAL startAngle, REAL sweepAngle)
 
Status AddPolygon (const Point *points, INT count)
 
Status AddPolygon (const PointF *points, INT count)
 
Status AddRectangle (const Rect &rect)
 
Status AddRectangle (const RectF &rect)
 
Status AddRectangles (const Rect *rects, INT count)
 
Status AddRectangles (const RectF *rects, INT count)
 
Status AddString (const WCHAR *string, INT length, const FontFamily *family, INT style, REAL emSize, const Rect &layoutRect, const StringFormat *format)
 
Status AddString (const WCHAR *string, INT length, const FontFamily *family, INT style, REAL emSize, const PointF &origin, const StringFormat *format)
 
Status AddString (const WCHAR *string, INT length, const FontFamily *family, INT style, REAL emSize, const Point &origin, const StringFormat *format)
 
Status AddString (const WCHAR *string, INT length, const FontFamily *family, INT style, REAL emSize, const RectF &layoutRect, const StringFormat *format)
 
Status ClearMarkers ()
 
GraphicsPathClone ()
 
Status CloseAllFigures ()
 
Status CloseFigure ()
 
Status Flatten (const Matrix *matrix, REAL flatness)
 
Status GetBounds (Rect *bounds, const Matrix *matrix, const Pen *pen)
 
Status GetBounds (RectF *bounds, const Matrix *matrix, const Pen *pen)
 
FillMode GetFillMode ()
 
Status GetLastPoint (PointF *lastPoint) const
 
Status GetLastStatus () const
 
Status GetPathData (PathData *pathData)
 
Status GetPathPoints (Point *points, INT count) const
 
Status GetPathPoints (PointF *points, INT count) const
 
Status GetPathTypes (BYTE *types, INT count) const
 
INT GetPointCount () const
 
BOOL IsOutlineVisible (const Point &point, const Pen *pen, const Graphics *g) const
 
BOOL IsOutlineVisible (REAL x, REAL y, const Pen *pen, const Graphics *g) const
 
BOOL IsOutlineVisible (INT x, INT y, const Pen *pen, const Graphics *g) const
 
BOOL IsOutlineVisible (const PointF &point, const Pen *pen, const Graphics *g) const
 
BOOL IsVisible (REAL x, REAL y, const Graphics *g) const
 
BOOL IsVisible (const PointF &point, const Graphics *g) const
 
BOOL IsVisible (INT x, INT y, const Graphics *g) const
 
BOOL IsVisible (const Point &point, const Graphics *g) const
 
Status Outline (const Matrix *matrix, REAL flatness)
 
Status Reset ()
 
Status Reverse ()
 
Status SetFillMode (FillMode fillmode)
 
Status SetMarker ()
 
Status StartFigure ()
 
Status Transform (const Matrix *matrix)
 
Status Warp (const PointF *destPoints, INT count, const RectF &srcRect, const Matrix *matrix, WarpMode warpMode, REAL flatness)
 
Status Widen (const Pen *pen, const Matrix *matrix, REAL flatness)
 
- 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

 GraphicsPath ()
 
 GraphicsPath (GpPath *path)
 
Status SetStatus (Status status) const
 
void SetNativePath (GpPath *path)
 

Protected Attributes

GpPathnativePath
 
Status lastStatus
 

Private Member Functions

 GraphicsPath (const GraphicsPath &)
 
GraphicsPathoperator= (const GraphicsPath &)
 

Friends

class Region
 
class CustomLineCap
 
class Graphics
 
GpPath *& getNat (const GraphicsPath *path)
 

Detailed Description

Definition at line 22 of file gdipluspath.h.

Constructor & Destructor Documentation

◆ GraphicsPath() [1/6]

GraphicsPath::GraphicsPath ( const Point points,
const BYTE types,
INT  count,
FillMode  fillMode 
)
inline

Definition at line 29 of file gdipluspath.h.

30 {
31 lastStatus = DllExports::GdipCreatePath2I(points, types, count, fillMode, &nativePath);
32 }
GpPath * nativePath
Definition: gdipluspath.h:587
Status lastStatus
Definition: gdipluspath.h:588
#define NULL
Definition: types.h:112
GLuint GLuint GLsizei count
Definition: gl.h:1545
GLsizei const GLfloat * points
Definition: glext.h:8112
GLenum fillMode
Definition: glext.h:11728
Definition: cmds.c:130

◆ GraphicsPath() [2/6]

GraphicsPath::GraphicsPath ( FillMode  fillMode = FillModeAlternate)
inline

Definition at line 34 of file gdipluspath.h.

35 {
36 lastStatus = DllExports::GdipCreatePath(fillMode, &nativePath);
37 }

◆ GraphicsPath() [3/6]

GraphicsPath::GraphicsPath ( const PointF points,
const BYTE types,
INT  count,
FillMode  fillMode = FillModeAlternate 
)
inline

Definition at line 39 of file gdipluspath.h.

41 {
42 lastStatus = DllExports::GdipCreatePath2(points, types, count, fillMode, &nativePath);
43 }

◆ ~GraphicsPath()

GraphicsPath::~GraphicsPath ( )
inline

Definition at line 45 of file gdipluspath.h.

46 {
47 DllExports::GdipDeletePath(nativePath);
48 }

◆ GraphicsPath() [4/6]

GraphicsPath::GraphicsPath ( )
inlineprotected

Definition at line 590 of file gdipluspath.h.

591 {
592 }

Referenced by Clone().

◆ GraphicsPath() [5/6]

GraphicsPath::GraphicsPath ( GpPath path)
inlineprotected

Definition at line 594 of file gdipluspath.h.

595 {
596 }
@ Ok
Definition: gdiplustypes.h:26

◆ GraphicsPath() [6/6]

GraphicsPath::GraphicsPath ( const GraphicsPath )
private

Member Function Documentation

◆ AddArc() [1/4]

Status GraphicsPath::AddArc ( const Rect rect,
REAL  startAngle,
REAL  sweepAngle 
)
inline

Definition at line 51 of file gdipluspath.h.

52 {
53 return AddArc(rect.X, rect.Y, rect.Width, rect.Height, startAngle, sweepAngle);
54 }
Status AddArc(const Rect &rect, REAL startAngle, REAL sweepAngle)
Definition: gdipluspath.h:51
& rect
Definition: startmenu.cpp:1413

Referenced by AddArc().

◆ AddArc() [2/4]

Status GraphicsPath::AddArc ( const RectF rect,
REAL  startAngle,
REAL  sweepAngle 
)
inline

Definition at line 57 of file gdipluspath.h.

58 {
59 return AddArc(rect.X, rect.Y, rect.Width, rect.Height, startAngle, sweepAngle);
60 }

◆ AddArc() [3/4]

Status GraphicsPath::AddArc ( INT  x,
INT  y,
INT  width,
INT  height,
REAL  startAngle,
REAL  sweepAngle 
)
inline

Definition at line 63 of file gdipluspath.h.

64 {
65 return SetStatus(DllExports::GdipAddPathArcI(nativePath, x, y, width, height, startAngle, sweepAngle));
66 }
Status SetStatus(Status status) const
Definition: gdipluspath.h:599
GLint GLint GLint GLint GLint x
Definition: gl.h:1548
GLint GLint GLint GLint GLint GLint y
Definition: gl.h:1548
GLint GLint GLsizei GLsizei height
Definition: gl.h:1546
GLint GLint GLsizei width
Definition: gl.h:1546

◆ AddArc() [4/4]

Status GraphicsPath::AddArc ( REAL  x,
REAL  y,
REAL  width,
REAL  height,
REAL  startAngle,
REAL  sweepAngle 
)
inline

Definition at line 69 of file gdipluspath.h.

70 {
71 return SetStatus(DllExports::GdipAddPathArc(nativePath, x, y, width, height, startAngle, sweepAngle));
72 }

◆ AddBezier() [1/4]

Status GraphicsPath::AddBezier ( const Point pt1,
const Point pt2,
const Point pt3,
const Point pt4 
)
inline

Definition at line 75 of file gdipluspath.h.

76 {
77 return AddBezier(pt1.X, pt1.Y, pt2.X, pt2.Y, pt3.X, pt3.Y, pt4.X, pt4.Y);
78 }
Status AddBezier(const Point &pt1, const Point &pt2, const Point &pt3, const Point &pt4)
Definition: gdipluspath.h:75

Referenced by AddBezier().

◆ AddBezier() [2/4]

Status GraphicsPath::AddBezier ( const PointF pt1,
const PointF pt2,
const PointF pt3,
const PointF pt4 
)
inline

Definition at line 87 of file gdipluspath.h.

88 {
89 return AddBezier(pt1.X, pt1.Y, pt2.X, pt2.Y, pt3.X, pt3.Y, pt4.X, pt4.Y);
90 }
REAL Y
Definition: gdiplustypes.h:649
REAL X
Definition: gdiplustypes.h:648

◆ AddBezier() [3/4]

Status GraphicsPath::AddBezier ( INT  x1,
INT  y1,
INT  x2,
INT  y2,
INT  x3,
INT  y3,
INT  x4,
INT  y4 
)
inline

Definition at line 93 of file gdipluspath.h.

94 {
95 return SetStatus(DllExports::GdipAddPathBezierI(nativePath, x1, y1, x2, y2, x3, y3, x4, y4));
96 }
_In_ CLIPOBJ _In_ BRUSHOBJ _In_ LONG _In_ LONG _In_ LONG x2
Definition: winddi.h:3710
_In_ CLIPOBJ _In_ BRUSHOBJ _In_ LONG _In_ LONG y1
Definition: winddi.h:3709
_In_ CLIPOBJ _In_ BRUSHOBJ _In_ LONG x1
Definition: winddi.h:3708
_In_ CLIPOBJ _In_ BRUSHOBJ _In_ LONG _In_ LONG _In_ LONG _In_ LONG y2
Definition: winddi.h:3711

◆ AddBezier() [4/4]

Status GraphicsPath::AddBezier ( REAL  x1,
REAL  y1,
REAL  x2,
REAL  y2,
REAL  x3,
REAL  y3,
REAL  x4,
REAL  y4 
)
inline

Definition at line 81 of file gdipluspath.h.

82 {
83 return SetStatus(DllExports::GdipAddPathBezier(nativePath, x1, y1, x2, y2, x3, y3, x4, y4));
84 }

◆ AddBeziers() [1/2]

Status GraphicsPath::AddBeziers ( const Point points,
INT  count 
)
inline

Definition at line 99 of file gdipluspath.h.

100 {
101 return SetStatus(DllExports::GdipAddPathBeziersI(nativePath, points, count));
102 }

◆ AddBeziers() [2/2]

Status GraphicsPath::AddBeziers ( const PointF points,
INT  count 
)
inline

Definition at line 105 of file gdipluspath.h.

106 {
107 return SetStatus(DllExports::GdipAddPathBeziers(nativePath, points, count));
108 }

◆ AddClosedCurve() [1/4]

Status GraphicsPath::AddClosedCurve ( const Point points,
INT  count 
)
inline

Definition at line 111 of file gdipluspath.h.

112 {
113 return SetStatus(DllExports::GdipAddPathClosedCurveI(nativePath, points, count));
114 }

◆ AddClosedCurve() [2/4]

Status GraphicsPath::AddClosedCurve ( const Point points,
INT  count,
REAL  tension 
)
inline

Definition at line 117 of file gdipluspath.h.

118 {
119 return SetStatus(DllExports::GdipAddPathClosedCurve2I(nativePath, points, count, tension));
120 }

◆ AddClosedCurve() [3/4]

Status GraphicsPath::AddClosedCurve ( const PointF points,
INT  count 
)
inline

Definition at line 129 of file gdipluspath.h.

130 {
131 return SetStatus(DllExports::GdipAddPathClosedCurve(nativePath, points, count));
132 }

◆ AddClosedCurve() [4/4]

Status GraphicsPath::AddClosedCurve ( const PointF points,
INT  count,
REAL  tension 
)
inline

Definition at line 123 of file gdipluspath.h.

124 {
125 return SetStatus(DllExports::GdipAddPathClosedCurve2(nativePath, points, count, tension));
126 }

◆ AddCurve() [1/6]

Status GraphicsPath::AddCurve ( const Point points,
INT  count 
)
inline

Definition at line 135 of file gdipluspath.h.

136 {
137 return SetStatus(DllExports::GdipAddPathCurveI(nativePath, points, count));
138 }

◆ AddCurve() [2/6]

Status GraphicsPath::AddCurve ( const Point points,
INT  count,
INT  offset,
INT  numberOfSegments,
REAL  tension 
)
inline

Definition at line 153 of file gdipluspath.h.

154 {
155 return SetStatus(DllExports::GdipAddPathCurve3I(nativePath, points, count, offset, numberOfSegments, tension));
156 }
GLintptr offset
Definition: glext.h:5920

◆ AddCurve() [3/6]

Status GraphicsPath::AddCurve ( const Point points,
INT  count,
REAL  tension 
)
inline

Definition at line 159 of file gdipluspath.h.

160 {
161 return SetStatus(DllExports::GdipAddPathCurve2I(nativePath, points, count, tension));
162 }

◆ AddCurve() [4/6]

Status GraphicsPath::AddCurve ( const PointF points,
INT  count 
)
inline

Definition at line 147 of file gdipluspath.h.

148 {
149 return SetStatus(DllExports::GdipAddPathCurve(nativePath, points, count));
150 }

◆ AddCurve() [5/6]

Status GraphicsPath::AddCurve ( const PointF points,
INT  count,
INT  offset,
INT  numberOfSegments,
REAL  tension 
)
inline

Definition at line 165 of file gdipluspath.h.

166 {
167 return SetStatus(DllExports::GdipAddPathCurve3(nativePath, points, count, offset, numberOfSegments, tension));
168 }

◆ AddCurve() [6/6]

Status GraphicsPath::AddCurve ( const PointF points,
INT  count,
REAL  tension 
)
inline

Definition at line 141 of file gdipluspath.h.

142 {
143 return SetStatus(DllExports::GdipAddPathCurve2(nativePath, points, count, tension));
144 }

◆ AddEllipse() [1/4]

Status GraphicsPath::AddEllipse ( const Rect rect)
inline

Definition at line 171 of file gdipluspath.h.

172 {
173 return AddEllipse(rect.X, rect.Y, rect.Width, rect.Height);
174 }
Status AddEllipse(const Rect &rect)
Definition: gdipluspath.h:171

Referenced by AddEllipse().

◆ AddEllipse() [2/4]

Status GraphicsPath::AddEllipse ( const RectF rect)
inline

Definition at line 177 of file gdipluspath.h.

178 {
179 return AddEllipse(rect.X, rect.Y, rect.Width, rect.Height);
180 }

◆ AddEllipse() [3/4]

Status GraphicsPath::AddEllipse ( INT  x,
INT  y,
INT  width,
INT  height 
)
inline

Definition at line 183 of file gdipluspath.h.

184 {
185 return SetStatus(DllExports::GdipAddPathEllipseI(nativePath, x, y, width, height));
186 }

◆ AddEllipse() [4/4]

Status GraphicsPath::AddEllipse ( REAL  x,
REAL  y,
REAL  width,
REAL  height 
)
inline

Definition at line 189 of file gdipluspath.h.

190 {
191 return SetStatus(DllExports::GdipAddPathEllipse(nativePath, x, y, width, height));
192 }

◆ AddLine() [1/4]

Status GraphicsPath::AddLine ( const Point pt1,
const Point pt2 
)
inline

Definition at line 195 of file gdipluspath.h.

196 {
197 return AddLine(pt1.X, pt1.Y, pt2.X, pt2.Y);
198 }
Status AddLine(const Point &pt1, const Point &pt2)
Definition: gdipluspath.h:195

Referenced by AddLine().

◆ AddLine() [2/4]

Status GraphicsPath::AddLine ( const PointF pt1,
const PointF pt2 
)
inline

Definition at line 201 of file gdipluspath.h.

202 {
203 return AddLine(pt1.X, pt1.Y, pt2.X, pt2.Y);
204 }

◆ AddLine() [3/4]

Status GraphicsPath::AddLine ( INT  x1,
INT  y1,
INT  x2,
INT  y2 
)
inline

Definition at line 213 of file gdipluspath.h.

214 {
215 return SetStatus(DllExports::GdipAddPathLineI(nativePath, x1, y1, x2, y2));
216 }

◆ AddLine() [4/4]

Status GraphicsPath::AddLine ( REAL  x1,
REAL  y1,
REAL  x2,
REAL  y2 
)
inline

Definition at line 207 of file gdipluspath.h.

208 {
209 return SetStatus(DllExports::GdipAddPathLine(nativePath, x1, y1, x2, y2));
210 }

◆ AddLines() [1/2]

Status GraphicsPath::AddLines ( const Point points,
INT  count 
)
inline

Definition at line 219 of file gdipluspath.h.

220 {
221 return SetStatus(DllExports::GdipAddPathLine2I(nativePath, points, count));
222 }

◆ AddLines() [2/2]

Status GraphicsPath::AddLines ( const PointF points,
INT  count 
)
inline

Definition at line 225 of file gdipluspath.h.

226 {
227 return SetStatus(DllExports::GdipAddPathLine2(nativePath, points, count));
228 }

◆ AddPath()

Status GraphicsPath::AddPath ( const GraphicsPath addingPath,
BOOL  connect 
)
inline

Definition at line 231 of file gdipluspath.h.

232 {
233 GpPath *nativePath2 = addingPath ? getNat(addingPath) : NULL;
234 return SetStatus(DllExports::GdipAddPathPath(nativePath, nativePath2, connect));
235 }
friend GpPath *& getNat(const GraphicsPath *path)
Definition: gdipluspath.h:620

◆ AddPie() [1/4]

Status GraphicsPath::AddPie ( const Rect rect,
REAL  startAngle,
REAL  sweepAngle 
)
inline

Definition at line 238 of file gdipluspath.h.

239 {
240 return AddPie(rect.X, rect.Y, rect.Width, rect.Height, startAngle, sweepAngle);
241 }
Status AddPie(const Rect &rect, REAL startAngle, REAL sweepAngle)
Definition: gdipluspath.h:238

Referenced by AddPie().

◆ AddPie() [2/4]

Status GraphicsPath::AddPie ( const RectF rect,
REAL  startAngle,
REAL  sweepAngle 
)
inline

Definition at line 256 of file gdipluspath.h.

257 {
258 return AddPie(rect.X, rect.Y, rect.Width, rect.Height, startAngle, sweepAngle);
259 }

◆ AddPie() [3/4]

Status GraphicsPath::AddPie ( INT  x,
INT  y,
INT  width,
INT  height,
REAL  startAngle,
REAL  sweepAngle 
)
inline

Definition at line 244 of file gdipluspath.h.

245 {
246 return SetStatus(DllExports::GdipAddPathPieI(nativePath, x, y, width, height, startAngle, sweepAngle));
247 }

◆ AddPie() [4/4]

Status GraphicsPath::AddPie ( REAL  x,
REAL  y,
REAL  width,
REAL  height,
REAL  startAngle,
REAL  sweepAngle 
)
inline

Definition at line 250 of file gdipluspath.h.

251 {
252 return SetStatus(DllExports::GdipAddPathPie(nativePath, x, y, width, height, startAngle, sweepAngle));
253 }

◆ AddPolygon() [1/2]

Status GraphicsPath::AddPolygon ( const Point points,
INT  count 
)
inline

Definition at line 262 of file gdipluspath.h.

263 {
264 return SetStatus(DllExports::GdipAddPathPolygonI(nativePath, points, count));
265 }

◆ AddPolygon() [2/2]

Status GraphicsPath::AddPolygon ( const PointF points,
INT  count 
)
inline

Definition at line 268 of file gdipluspath.h.

269 {
270 return SetStatus(DllExports::GdipAddPathPolygon(nativePath, points, count));
271 }

◆ AddRectangle() [1/2]

Status GraphicsPath::AddRectangle ( const Rect rect)
inline

Definition at line 274 of file gdipluspath.h.

275 {
276 return SetStatus(DllExports::GdipAddPathRectangleI(nativePath, rect.X, rect.Y, rect.Width, rect.Height));
277 }

◆ AddRectangle() [2/2]

Status GraphicsPath::AddRectangle ( const RectF rect)
inline

Definition at line 280 of file gdipluspath.h.

281 {
282 return SetStatus(DllExports::GdipAddPathRectangle(nativePath, rect.X, rect.Y, rect.Width, rect.Height));
283 }

◆ AddRectangles() [1/2]

Status GraphicsPath::AddRectangles ( const Rect rects,
INT  count 
)
inline

Definition at line 286 of file gdipluspath.h.

287 {
288 return SetStatus(DllExports::GdipAddPathRectanglesI(nativePath, rects, count));
289 }

◆ AddRectangles() [2/2]

Status GraphicsPath::AddRectangles ( const RectF rects,
INT  count 
)
inline

Definition at line 292 of file gdipluspath.h.

293 {
294 return SetStatus(DllExports::GdipAddPathRectangles(nativePath, rects, count));
295 }

◆ AddString() [1/4]

Status GraphicsPath::AddString ( const WCHAR string,
INT  length,
const FontFamily family,
INT  style,
REAL  emSize,
const Point origin,
const StringFormat format 
)
inline

Definition at line 329 of file gdipluspath.h.

337 {
338 Rect rect(origin.X, origin.Y, 0, 0);
339 return SetStatus(DllExports::GdipAddPathStringI(
340 nativePath, string, length, family ? getNat(family) : NULL, style, emSize, &rect,
341 format ? getNat(format) : NULL));
342 }
Arabic default style
Definition: afstyles.h:94
GLuint GLsizei GLsizei * length
Definition: glext.h:6040
voidpf uLong int origin
Definition: ioapi.h:144
Definition: format.c:58

◆ AddString() [2/4]

Status GraphicsPath::AddString ( const WCHAR string,
INT  length,
const FontFamily family,
INT  style,
REAL  emSize,
const PointF origin,
const StringFormat format 
)
inline

Definition at line 313 of file gdipluspath.h.

321 {
322 RectF rect(origin.X, origin.Y, 0.0f, 0.0f);
323 return SetStatus(DllExports::GdipAddPathString(
324 nativePath, string, length, family ? getNat(family) : NULL, style, emSize, &rect,
325 format ? getNat(format) : NULL));
326 }

◆ AddString() [3/4]

Status GraphicsPath::AddString ( const WCHAR string,
INT  length,
const FontFamily family,
INT  style,
REAL  emSize,
const Rect layoutRect,
const StringFormat format 
)
inline

Definition at line 298 of file gdipluspath.h.

306 {
307 return SetStatus(DllExports::GdipAddPathStringI(
308 nativePath, string, length, family ? getNat(family) : NULL, style, emSize, &layoutRect,
309 format ? getNat(format) : NULL));
310 }

◆ AddString() [4/4]

Status GraphicsPath::AddString ( const WCHAR string,
INT  length,
const FontFamily family,
INT  style,
REAL  emSize,
const RectF layoutRect,
const StringFormat format 
)
inline

Definition at line 345 of file gdipluspath.h.

353 {
354 return SetStatus(DllExports::GdipAddPathString(
355 nativePath, string, length, family ? getNat(family) : NULL, style, emSize, &layoutRect,
356 format ? getNat(format) : NULL));
357 }

◆ ClearMarkers()

Status GraphicsPath::ClearMarkers ( )
inline

Definition at line 360 of file gdipluspath.h.

361 {
362 return SetStatus(DllExports::GdipClearPathMarkers(nativePath));
363 }

◆ Clone()

GraphicsPath * GraphicsPath::Clone ( )
inline

Definition at line 366 of file gdipluspath.h.

367 {
368 GpPath *clonepath = NULL;
369 SetStatus(DllExports::GdipClonePath(nativePath, &clonepath));
370 if (lastStatus != Ok)
371 return NULL;
372 return new GraphicsPath(clonepath);
373 }

◆ CloseAllFigures()

Status GraphicsPath::CloseAllFigures ( )
inline

Definition at line 376 of file gdipluspath.h.

377 {
378 return SetStatus(DllExports::GdipClosePathFigures(nativePath));
379 }

◆ CloseFigure()

Status GraphicsPath::CloseFigure ( )
inline

Definition at line 382 of file gdipluspath.h.

383 {
384 return SetStatus(DllExports::GdipClosePathFigure(nativePath));
385 }

◆ Flatten()

Status GraphicsPath::Flatten ( const Matrix matrix,
REAL  flatness 
)
inline

Definition at line 388 of file gdipluspath.h.

389 {
390 GpMatrix *nativeMatrix = matrix ? getNat(matrix) : NULL;
391 return SetStatus(DllExports::GdipFlattenPath(nativePath, nativeMatrix, flatness));
392 }
GLuint GLenum matrix
Definition: glext.h:9407

◆ GetBounds() [1/2]

Status GraphicsPath::GetBounds ( Rect bounds,
const Matrix matrix,
const Pen pen 
)
inline

Definition at line 395 of file gdipluspath.h.

396 {
398 }
@ NotImplemented
Definition: gdiplustypes.h:32

◆ GetBounds() [2/2]

Status GraphicsPath::GetBounds ( RectF bounds,
const Matrix matrix,
const Pen pen 
)
inline

Definition at line 401 of file gdipluspath.h.

402 {
404 }

◆ GetFillMode()

FillMode GraphicsPath::GetFillMode ( )
inline

Definition at line 407 of file gdipluspath.h.

408 {
409 FillMode fillmode = FillModeAlternate;
410 SetStatus(DllExports::GdipGetPathFillMode(nativePath, &fillmode));
411 return fillmode;
412 }
FillMode
Definition: gdiplusenums.h:54
@ FillModeAlternate
Definition: gdiplusenums.h:55

◆ GetLastPoint()

Status GraphicsPath::GetLastPoint ( PointF lastPoint) const
inline

Definition at line 415 of file gdipluspath.h.

416 {
417 return SetStatus(DllExports::GdipGetPathLastPoint(nativePath, lastPoint));
418 }

◆ GetLastStatus()

Status GraphicsPath::GetLastStatus ( ) const
inline

Definition at line 421 of file gdipluspath.h.

422 {
423 return lastStatus;
424 }

◆ GetPathData()

Status GraphicsPath::GetPathData ( PathData pathData)
inline

Definition at line 427 of file gdipluspath.h.

428 {
429 return NotImplemented;
430 }

◆ GetPathPoints() [1/2]

Status GraphicsPath::GetPathPoints ( Point points,
INT  count 
) const
inline

Definition at line 433 of file gdipluspath.h.

434 {
435 return SetStatus(DllExports::GdipGetPathPointsI(nativePath, points, count));
436 }

◆ GetPathPoints() [2/2]

Status GraphicsPath::GetPathPoints ( PointF points,
INT  count 
) const
inline

Definition at line 439 of file gdipluspath.h.

440 {
441 return SetStatus(DllExports::GdipGetPathPoints(nativePath, points, count));
442 }

◆ GetPathTypes()

Status GraphicsPath::GetPathTypes ( BYTE types,
INT  count 
) const
inline

Definition at line 445 of file gdipluspath.h.

446 {
447 return SetStatus(DllExports::GdipGetPathTypes(nativePath, types, count));
448 }

◆ GetPointCount()

INT GraphicsPath::GetPointCount ( ) const
inline

Definition at line 451 of file gdipluspath.h.

452 {
453 INT count = 0;
454 SetStatus(DllExports::GdipGetPointCount(nativePath, &count));
455 return count;
456 }
int32_t INT
Definition: typedefs.h:58

◆ IsOutlineVisible() [1/4]

BOOL GraphicsPath::IsOutlineVisible ( const Point point,
const Pen pen,
const Graphics g 
) const
inline

Definition at line 459 of file gdipluspath.h.

460 {
461 return IsOutlineVisible(point.X, point.Y, pen, g);
462 }
BOOL IsOutlineVisible(const Point &point, const Pen *pen, const Graphics *g) const
Definition: gdipluspath.h:459
POINTL point
Definition: edittest.c:50
GLboolean GLboolean g
Definition: glext.h:6204

Referenced by IsOutlineVisible().

◆ IsOutlineVisible() [2/4]

BOOL GraphicsPath::IsOutlineVisible ( const PointF point,
const Pen pen,
const Graphics g 
) const
inline

Definition at line 485 of file gdipluspath.h.

486 {
487 return IsOutlineVisible(point.X, point.Y, pen, g);
488 }

◆ IsOutlineVisible() [3/4]

BOOL GraphicsPath::IsOutlineVisible ( INT  x,
INT  y,
const Pen pen,
const Graphics g 
) const
inline

Definition at line 475 of file gdipluspath.h.

476 {
477 GpGraphics *nativeGraphics = g ? getNat(g) : NULL;
478 GpPen *nativePen = pen ? getNat(pen) : NULL;
479 BOOL flag = FALSE;
480 SetStatus(DllExports::GdipIsOutlineVisiblePathPointI(nativePath, x, y, nativePen, nativeGraphics, &flag));
481 return flag;
482 }
#define FALSE
Definition: types.h:117
unsigned int BOOL
Definition: ntddk_ex.h:94
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean flag
Definition: glfuncs.h:52

◆ IsOutlineVisible() [4/4]

BOOL GraphicsPath::IsOutlineVisible ( REAL  x,
REAL  y,
const Pen pen,
const Graphics g 
) const
inline

Definition at line 465 of file gdipluspath.h.

466 {
467 GpGraphics *nativeGraphics = g ? getNat(g) : NULL;
468 GpPen *nativePen = pen ? getNat(pen) : NULL;
469 BOOL flag = FALSE;
470 SetStatus(DllExports::GdipIsOutlineVisiblePathPoint(nativePath, x, y, nativePen, nativeGraphics, &flag));
471 return flag;
472 }

◆ IsVisible() [1/4]

BOOL GraphicsPath::IsVisible ( const Point point,
const Graphics g 
) const
inline

Definition at line 515 of file gdipluspath.h.

516 {
517 return IsVisible(point.X, point.Y, g);
518 }
BOOL IsVisible(REAL x, REAL y, const Graphics *g) const
Definition: gdipluspath.h:491

◆ IsVisible() [2/4]

BOOL GraphicsPath::IsVisible ( const PointF point,
const Graphics g 
) const
inline

Definition at line 500 of file gdipluspath.h.

501 {
502 return IsVisible(point.X, point.Y, g);
503 }

◆ IsVisible() [3/4]

BOOL GraphicsPath::IsVisible ( INT  x,
INT  y,
const Graphics g 
) const
inline

Definition at line 506 of file gdipluspath.h.

507 {
508 GpGraphics *nativeGraphics = g ? getNat(g) : NULL;
509 BOOL flag = FALSE;
510 SetStatus(DllExports::GdipIsVisiblePathPointI(nativePath, x, y, nativeGraphics, &flag));
511 return flag;
512 }

◆ IsVisible() [4/4]

BOOL GraphicsPath::IsVisible ( REAL  x,
REAL  y,
const Graphics g 
) const
inline

Definition at line 491 of file gdipluspath.h.

492 {
493 GpGraphics *nativeGraphics = g ? getNat(g) : NULL;
494 BOOL flag = FALSE;
495 SetStatus(DllExports::GdipIsVisiblePathPoint(nativePath, x, y, nativeGraphics, &flag));
496 return flag;
497 }

Referenced by IsVisible().

◆ operator=()

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

◆ Outline()

Status GraphicsPath::Outline ( const Matrix matrix,
REAL  flatness 
)
inline

Definition at line 521 of file gdipluspath.h.

522 {
523 GpMatrix *nativeMatrix = matrix ? getNat(matrix) : NULL;
524 return SetStatus(DllExports::GdipWindingModeOutline(nativePath, nativeMatrix, flatness));
525 }

◆ Reset()

Status GraphicsPath::Reset ( )
inline

Definition at line 528 of file gdipluspath.h.

529 {
530 return SetStatus(DllExports::GdipResetPath(nativePath));
531 }

◆ Reverse()

Status GraphicsPath::Reverse ( )
inline

Definition at line 534 of file gdipluspath.h.

535 {
536 return SetStatus(DllExports::GdipReversePath(nativePath));
537 }

◆ SetFillMode()

Status GraphicsPath::SetFillMode ( FillMode  fillmode)
inline

Definition at line 540 of file gdipluspath.h.

541 {
542 return SetStatus(DllExports::GdipSetPathFillMode(nativePath, fillmode));
543 }

◆ SetMarker()

Status GraphicsPath::SetMarker ( )
inline

Definition at line 546 of file gdipluspath.h.

547 {
548 return SetStatus(DllExports::GdipSetPathMarker(nativePath));
549 }

◆ SetNativePath()

void GraphicsPath::SetNativePath ( GpPath path)
inlineprotected

Definition at line 607 of file gdipluspath.h.

608 {
610 }

◆ SetStatus()

◆ StartFigure()

Status GraphicsPath::StartFigure ( )
inline

Definition at line 552 of file gdipluspath.h.

553 {
554 return SetStatus(DllExports::GdipStartPathFigure(nativePath));
555 }

◆ Transform()

Status GraphicsPath::Transform ( const Matrix matrix)
inline

Definition at line 558 of file gdipluspath.h.

559 {
560 if (!matrix)
561 return Ok;
562 return SetStatus(DllExports::GdipTransformPath(nativePath, matrix->nativeMatrix));
563 }

◆ Warp()

Status GraphicsPath::Warp ( const PointF destPoints,
INT  count,
const RectF srcRect,
const Matrix matrix,
WarpMode  warpMode,
REAL  flatness 
)
inline

Definition at line 566 of file gdipluspath.h.

573 {
574 GpMatrix *nativeMatrix = matrix ? getNat(matrix) : NULL;
575 return SetStatus(DllExports::GdipWarpPath(
576 nativePath, nativeMatrix, destPoints, count, srcRect.X, srcRect.Y, srcRect.Width, srcRect.Height, warpMode,
577 flatness));
578 }
REAL Height
Definition: gdiplustypes.h:664
REAL X
Definition: gdiplustypes.h:661
REAL Width
Definition: gdiplustypes.h:663
REAL Y
Definition: gdiplustypes.h:662

◆ Widen()

Status GraphicsPath::Widen ( const Pen pen,
const Matrix matrix,
REAL  flatness 
)
inline

Definition at line 581 of file gdipluspath.h.

582 {
584 }

Friends And Related Function Documentation

◆ CustomLineCap

friend class CustomLineCap
friend

Definition at line 25 of file gdipluspath.h.

◆ getNat

GpPath *& getNat ( const GraphicsPath path)
friend

Definition at line 620 of file gdipluspath.h.

621 {
622 return const_cast<GraphicsPath *>(path)->nativePath;
623 }

Referenced by AddPath(), AddString(), Flatten(), IsOutlineVisible(), IsVisible(), Outline(), and Warp().

◆ Graphics

friend class Graphics
friend

Definition at line 26 of file gdipluspath.h.

◆ Region

friend class Region
friend

Definition at line 24 of file gdipluspath.h.

Member Data Documentation

◆ lastStatus

Status GraphicsPath::lastStatus
mutableprotected

Definition at line 588 of file gdipluspath.h.

Referenced by Clone(), GetLastStatus(), GraphicsPath(), and SetStatus().

◆ nativePath


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