ReactOS 0.4.15-dev-8127-g6338913
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 }
GpPathIterator * nativeIterator
Definition: gdipluspath.h:737
#define NULL
Definition: types.h:112
GpBrush *& getNat(const Brush *brush)
Definition: gdiplusbrush.h:97

◆ ~GraphicsPathIterator()

GraphicsPathIterator::~GraphicsPathIterator ( )
inline

Definition at line 637 of file gdipluspath.h.

638 {
639 DllExports::GdipDeletePathIter(nativeIterator);
640 }

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 }
Status SetStatus(Status status) const
Definition: gdipluspath.h:741
GLsizei const GLfloat * points
Definition: glext.h:8112
Definition: cmds.c:130
int32_t INT
Definition: typedefs.h:58

◆ Enumerate()

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

Definition at line 651 of file gdipluspath.h.

652 {
653 INT resultCount;
654 SetStatus(DllExports::GdipPathIterEnumerate(nativeIterator, &resultCount, points, types, count));
655 return resultCount;
656 }
GLuint GLuint GLsizei count
Definition: gl.h:1545

◆ GetCount()

INT GraphicsPathIterator::GetCount ( ) const
inline

Definition at line 659 of file gdipluspath.h.

660 {
661 INT resultCount;
662 SetStatus(DllExports::GdipPathIterGetCount(nativeIterator, &resultCount));
663 return resultCount;
664 }

◆ 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;
676 SetStatus(DllExports::GdipPathIterGetSubpathCount(nativeIterator, &resultCount));
677 return resultCount;
678 }

◆ HasCurve()

BOOL GraphicsPathIterator::HasCurve ( ) const
inline

Definition at line 681 of file gdipluspath.h.

682 {
683 BOOL hasCurve;
684 SetStatus(DllExports::GdipPathIterHasCurve(nativeIterator, &hasCurve));
685 return hasCurve;
686 }
unsigned int BOOL
Definition: ntddk_ex.h:94

◆ 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;
693 SetStatus(DllExports::GdipPathIterNextMarkerPath(nativeIterator, &resultCount, nativePath));
694 return resultCount;
695 }

◆ 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 }

◆ 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 }

◆ 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 }

◆ 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 }

◆ Rewind()

VOID GraphicsPathIterator::Rewind ( )
inline

Definition at line 731 of file gdipluspath.h.

732 {
733 SetStatus(DllExports::GdipPathIterRewind(nativeIterator));
734 }

◆ SetStatus()

Status GraphicsPathIterator::SetStatus ( Status  status) const
inlineprotected

Definition at line 741 of file gdipluspath.h.

742 {
743 if (status != Ok)
745 return status;
746 }
@ Ok
Definition: gdiplustypes.h:26
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: