ReactOS  0.4.15-dev-309-g7c8d563
GraphicsPathIterator Class Reference

#include <gdipluspath.h>

Inheritance diagram for GraphicsPathIterator:
Collaboration diagram for GraphicsPathIterator:

Public Member Functions

 GraphicsPathIterator (GraphicsPath *path)
 
 ~GraphicsPathIterator ()
 
INT CopyData (PointF *points, BYTE *types, INT startIndex, INT endIndex)
 
INT Enumerate (PointF *points, BYTE *types, INT count)
 
INT GetCount () const
 
Status GetLastStatus () const
 
INT GetSubpathCount () const
 
BOOL HasCurve () const
 
INT NextMarker (GraphicsPath *path)
 
INT NextMarker (INT *startIndex, INT *endIndex)
 
INT NextPathType (BYTE *pathType, INT *startIndex, INT *endIndex)
 
INT NextSubpath (GraphicsPath *path, BOOL *isClosed)
 
INT NextSubpath (INT *startIndex, INT *endIndex, BOOL *isClosed)
 
VOID Rewind ()
 
- 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
 

Protected Attributes

GpPathIteratornativeIterator
 
Status lastStatus
 

Detailed Description

Definition at line 626 of file gdipluspath.h.

Constructor & Destructor Documentation

◆ GraphicsPathIterator()

GraphicsPathIterator::GraphicsPathIterator ( GraphicsPath path)
inline

Definition at line 629 of file gdipluspath.h.

630  {
631  GpPathIterator *it = NULL;
632  GpPath *nativePath = path ? getNat(path) : NULL;
633  lastStatus = DllExports::GdipCreatePathIter(&it, nativePath);
634  nativeIterator = it;
635  }
GpStatus WINGDIPAPI GdipCreatePathIter(GpPathIterator **iterator, GpPath *path)
Definition: pathiterator.c:34
GpBrush *& getNat(const Brush *brush)
Definition: gdiplusbrush.h:97
smooth NULL
Definition: ftsmooth.c:416
GpPathIterator * nativeIterator
Definition: gdipluspath.h:737

◆ ~GraphicsPathIterator()

GraphicsPathIterator::~GraphicsPathIterator ( )
inline

Definition at line 637 of file gdipluspath.h.

638  {
640  }
GpStatus WINGDIPAPI GdipDeletePathIter(GpPathIterator *iter)
Definition: pathiterator.c:69
GpPathIterator * nativeIterator
Definition: gdipluspath.h:737

Member Function Documentation

◆ CopyData()

INT GraphicsPathIterator::CopyData ( PointF points,
BYTE types,
INT  startIndex,
INT  endIndex 
)
inline

Definition at line 643 of file gdipluspath.h.

644  {
645  INT resultCount;
646  SetStatus(DllExports::GdipPathIterCopyData(nativeIterator, &resultCount, points, types, startIndex, endIndex));
647  return resultCount;
648  }
int32_t INT
Definition: typedefs.h:57
GpStatus WINGDIPAPI GdipPathIterCopyData(GpPathIterator *iterator, INT *resultCount, GpPointF *points, BYTE *types, INT startIndex, INT endIndex)
Definition: pathiterator.c:83
Definition: cmds.c:130
Status SetStatus(Status status) const
Definition: gdipluspath.h:741
GLsizei const GLfloat * points
Definition: glext.h:8112
GpPathIterator * nativeIterator
Definition: gdipluspath.h:737

◆ Enumerate()

INT GraphicsPathIterator::Enumerate ( PointF points,
BYTE types,
INT  count 
)
inline

Definition at line 651 of file gdipluspath.h.

652  {
653  INT resultCount;
655  return resultCount;
656  }
GLuint GLuint GLsizei count
Definition: gl.h:1545
int32_t INT
Definition: typedefs.h:57
Definition: cmds.c:130
Status SetStatus(Status status) const
Definition: gdipluspath.h:741
GLsizei const GLfloat * points
Definition: glext.h:8112
GpPathIterator * nativeIterator
Definition: gdipluspath.h:737
GpStatus WINGDIPAPI GdipPathIterEnumerate(GpPathIterator *iterator, INT *resultCount, GpPointF *points, BYTE *types, INT count)
Definition: pathiterator.c:267

◆ GetCount()

INT GraphicsPathIterator::GetCount ( ) const
inline

Definition at line 659 of file gdipluspath.h.

660  {
661  INT resultCount;
663  return resultCount;
664  }
int32_t INT
Definition: typedefs.h:57
Status SetStatus(Status status) const
Definition: gdipluspath.h:741
GpPathIterator * nativeIterator
Definition: gdipluspath.h:737
GpStatus WINGDIPAPI GdipPathIterGetCount(GpPathIterator *iterator, INT *count)
Definition: pathiterator.c:255

◆ GetLastStatus()

Status GraphicsPathIterator::GetLastStatus ( ) const
inline

Definition at line 667 of file gdipluspath.h.

668  {
669  return lastStatus;
670  }

◆ GetSubpathCount()

INT GraphicsPathIterator::GetSubpathCount ( ) const
inline

Definition at line 673 of file gdipluspath.h.

674  {
675  INT resultCount;
677  return resultCount;
678  }
GpStatus WINGDIPAPI GdipPathIterGetSubpathCount(GpPathIterator *iterator, INT *count)
Definition: pathiterator.c:127
int32_t INT
Definition: typedefs.h:57
Status SetStatus(Status status) const
Definition: gdipluspath.h:741
GpPathIterator * nativeIterator
Definition: gdipluspath.h:737

◆ HasCurve()

BOOL GraphicsPathIterator::HasCurve ( ) const
inline

Definition at line 681 of file gdipluspath.h.

682  {
683  BOOL hasCurve;
685  return hasCurve;
686  }
unsigned int BOOL
Definition: ntddk_ex.h:94
Status SetStatus(Status status) const
Definition: gdipluspath.h:741
GpPathIterator * nativeIterator
Definition: gdipluspath.h:737
GpStatus WINGDIPAPI GdipPathIterHasCurve(GpPathIterator *iterator, BOOL *hasCurve)
Definition: pathiterator.c:107

◆ NextMarker() [1/2]

INT GraphicsPathIterator::NextMarker ( GraphicsPath path)
inline

Definition at line 689 of file gdipluspath.h.

690  {
691  INT resultCount;
692  GpPath *nativePath = path ? getNat(path) : NULL;
694  return resultCount;
695  }
GpBrush *& getNat(const Brush *brush)
Definition: gdiplusbrush.h:97
int32_t INT
Definition: typedefs.h:57
GpStatus WINGDIPAPI GdipPathIterNextMarkerPath(GpPathIterator *iterator, INT *result, GpPath *path)
Definition: pathiterator.c:173
smooth NULL
Definition: ftsmooth.c:416
Status SetStatus(Status status) const
Definition: gdipluspath.h:741
GpPathIterator * nativeIterator
Definition: gdipluspath.h:737

◆ NextMarker() [2/2]

INT GraphicsPathIterator::NextMarker ( INT startIndex,
INT endIndex 
)
inline

Definition at line 698 of file gdipluspath.h.

699  {
700  INT resultCount;
701  SetStatus(DllExports::GdipPathIterNextMarker(nativeIterator, &resultCount, startIndex, endIndex));
702  return resultCount;
703  }
int32_t INT
Definition: typedefs.h:57
GpStatus WINGDIPAPI GdipPathIterNextMarker(GpPathIterator *iterator, INT *resultCount, INT *startIndex, INT *endIndex)
Definition: pathiterator.c:145
Status SetStatus(Status status) const
Definition: gdipluspath.h:741
GpPathIterator * nativeIterator
Definition: gdipluspath.h:737

◆ NextPathType()

INT GraphicsPathIterator::NextPathType ( BYTE pathType,
INT startIndex,
INT endIndex 
)
inline

Definition at line 706 of file gdipluspath.h.

707  {
708  INT resultCount;
709  SetStatus(DllExports::GdipPathIterNextPathType(nativeIterator, &resultCount, pathType, startIndex, endIndex));
710  return resultCount;
711  }
GpStatus WINGDIPAPI GdipPathIterNextPathType(GpPathIterator *iter, INT *result, BYTE *type, INT *start, INT *end)
Definition: pathiterator.c:295
int32_t INT
Definition: typedefs.h:57
Status SetStatus(Status status) const
Definition: gdipluspath.h:741
GpPathIterator * nativeIterator
Definition: gdipluspath.h:737

◆ NextSubpath() [1/2]

INT GraphicsPathIterator::NextSubpath ( GraphicsPath path,
BOOL isClosed 
)
inline

Definition at line 714 of file gdipluspath.h.

715  {
716  GpPath *nativePath = path ? getNat(path) : NULL;
717  INT resultCount;
718  SetStatus(DllExports::GdipPathIterNextSubpathPath(nativeIterator, &resultCount, nativePath, isClosed));
719  return resultCount;
720  }
GpStatus WINGDIPAPI GdipPathIterNextSubpathPath(GpPathIterator *iter, INT *result, GpPath *path, BOOL *closed)
Definition: pathiterator.c:306
GpBrush *& getNat(const Brush *brush)
Definition: gdiplusbrush.h:97
int32_t INT
Definition: typedefs.h:57
smooth NULL
Definition: ftsmooth.c:416
Status SetStatus(Status status) const
Definition: gdipluspath.h:741
GpPathIterator * nativeIterator
Definition: gdipluspath.h:737

◆ NextSubpath() [2/2]

INT GraphicsPathIterator::NextSubpath ( INT startIndex,
INT endIndex,
BOOL isClosed 
)
inline

Definition at line 723 of file gdipluspath.h.

724  {
725  INT resultCount;
726  SetStatus(DllExports::GdipPathIterNextSubpath(nativeIterator, &resultCount, startIndex, endIndex, isClosed));
727  return resultCount;
728  }
int32_t INT
Definition: typedefs.h:57
GpStatus WINGDIPAPI GdipPathIterNextSubpath(GpPathIterator *iterator, INT *resultCount, INT *startIndex, INT *endIndex, BOOL *isClosed)
Definition: pathiterator.c:199
Status SetStatus(Status status) const
Definition: gdipluspath.h:741
GpPathIterator * nativeIterator
Definition: gdipluspath.h:737

◆ Rewind()

VOID GraphicsPathIterator::Rewind ( )
inline

Definition at line 731 of file gdipluspath.h.

732  {
734  }
GpStatus WINGDIPAPI GdipPathIterRewind(GpPathIterator *iterator)
Definition: pathiterator.c:241
Status SetStatus(Status status) const
Definition: gdipluspath.h:741
GpPathIterator * nativeIterator
Definition: gdipluspath.h:737

◆ SetStatus()

Status GraphicsPathIterator::SetStatus ( Status  status) const
inlineprotected

Definition at line 741 of file gdipluspath.h.

742  {
743  if (status != Ok)
744  lastStatus = status;
745  return status;
746  }
static SERVICE_STATUS status
Definition: service.c:31
Definition: ps.c:97

Referenced by CopyData(), Enumerate(), GetCount(), GetSubpathCount(), HasCurve(), NextMarker(), NextPathType(), NextSubpath(), and Rewind().

Member Data Documentation

◆ lastStatus

Status GraphicsPathIterator::lastStatus
mutableprotected

Definition at line 738 of file gdipluspath.h.

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

◆ nativeIterator

GpPathIterator* GraphicsPathIterator::nativeIterator
protected

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