Skia
2D Graphics Library
SkPath::RawIter Class Reference

Use Iter instead. More...

#include <SkPath.h>

Public Member Functions

 RawIter ()
 Initializes RawIter with an empty SkPath. More...
 
 RawIter (const SkPath &path)
 Sets RawIter to return elements of verb array, SkPoint array, and conic weight in path. More...
 
void setPath (const SkPath &)
 Sets SkPath::Iter to return elements of verb array, SkPoint array, and conic weight in path. More...
 
Verb next (SkPoint[4])
 Returns next SkPath::Verb in verb array, and advances RawIter. More...
 
Verb peek () const
 Returns next SkPath::Verb, but does not advance RawIter. More...
 
SkScalar conicWeight () const
 Returns conic weight if next() returned kConic_Verb. More...
 

Friends

class SkPath
 

Detailed Description

Use Iter instead.

This class will soon be removed and RangeIter will be made private.

Constructor & Destructor Documentation

◆ RawIter() [1/2]

SkPath::RawIter::RawIter ( )
inline

Initializes RawIter with an empty SkPath.

next() on RawIter returns kDone_Verb. Call setPath to initialize SkPath::Iter at a later time.

Returns
RawIter of empty SkPath

◆ RawIter() [2/2]

SkPath::RawIter::RawIter ( const SkPath path)
inline

Sets RawIter to return elements of verb array, SkPoint array, and conic weight in path.

Parameters
pathSkPath to iterate
Returns
RawIter of path

Member Function Documentation

◆ conicWeight()

SkScalar SkPath::RawIter::conicWeight ( ) const
inline

Returns conic weight if next() returned kConic_Verb.

If next() has not been called, or next() did not return kConic_Verb, result is undefined.

Returns
conic weight for conic SkPoint returned by next()

◆ next()

Verb SkPath::RawIter::next ( SkPoint  [4])

Returns next SkPath::Verb in verb array, and advances RawIter.

When verb array is exhausted, returns kDone_Verb. Zero to four SkPoint are stored in pts, depending on the returned SkPath::Verb.

Parameters
ptsstorage for SkPoint data describing returned SkPath::Verb
Returns
next SkPath::Verb from verb array

◆ peek()

Verb SkPath::RawIter::peek ( ) const
inline

Returns next SkPath::Verb, but does not advance RawIter.

Returns
next SkPath::Verb from verb array

◆ setPath()

void SkPath::RawIter::setPath ( const SkPath )

Sets SkPath::Iter to return elements of verb array, SkPoint array, and conic weight in path.

Parameters
pathSkPath to iterate

Friends And Related Function Documentation

◆ SkPath

friend class SkPath
friend

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