SkPath::Iter Class Reference

#include <SkPath.h>

Collaboration diagram for SkPath::Iter:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 Iter ()
 Iter (const SkPath &, bool forceClose)
void setPath (const SkPath &, bool forceClose)
Verb next (SkPoint pts[4])
bool isCloseLine () const
bool isClosedContour () const

Detailed Description

Iterate through all of the segments (lines, quadratics, cubics) of each contours in a path.

Definition at line 505 of file SkPath.h.


Constructor & Destructor Documentation

SkPath::Iter::Iter (  ) 
SkPath::Iter::Iter ( const SkPath ,
bool  forceClose 
)

Member Function Documentation

bool SkPath::Iter::isClosedContour (  )  const

Returns true if the current contour is closed (has a kClose_Verb)

Returns:
true if the current contour is closed (has a kClose_Verb)
bool SkPath::Iter::isCloseLine (  )  const [inline]

If next() returns kLine_Verb, then this query returns true if the line was the result of a close() command (i.e. the end point is the initial moveto for this contour). If next() returned a different verb, this returns an undefined value.

Returns:
If the last call to next() returned kLine_Verb, return true if it was the result of an explicit close command.

Definition at line 528 of file SkPath.h.

Verb SkPath::Iter::next ( SkPoint  pts[4]  ) 

Return the next verb in this iteration of the path. When all segments have been visited, return kDone_Verb.

Parameters:
pts The points representing the current verb and/or segment
Returns:
The verb for the current segment
void SkPath::Iter::setPath ( const SkPath ,
bool  forceClose 
)

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

Generated on Tue Oct 20 11:03:42 2009 for Skia by  doxygen 1.6.1