Skia
2DGraphicsLibrary
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
SkClipStack::Iter Class Reference
Inheritance diagram for SkClipStack::Iter:
SkClipStack::B2TIter

Public Types

enum  IterStart { kBottom_IterStart = SkDeque::Iter::kFront_IterStart, kTop_IterStart = SkDeque::Iter::kBack_IterStart }
 

Public Member Functions

 Iter ()
 Creates an uninitialized iterator. More...
 
 Iter (const SkClipStack &stack, IterStart startLoc)
 
const Elementnext ()
 Return the clip element for this iterator. More...
 
const Elementprev ()
 
const ElementskipToTopmost (SkRegion::Op op)
 Moves the iterator to the topmost element with the specified RegionOp and returns that element. More...
 
void reset (const SkClipStack &stack, IterStart startLoc)
 Restarts the iterator on a clip stack.
 

Private Attributes

const SkClipStackfStack
 
SkDeque::Iter fIter
 

Constructor & Destructor Documentation

SkClipStack::Iter::Iter ( )

Creates an uninitialized iterator.

Must be reset()

Member Function Documentation

const Element* SkClipStack::Iter::next ( )

Return the clip element for this iterator.

If next()/prev() returns NULL, then the iterator is done.

const Element* SkClipStack::Iter::skipToTopmost ( SkRegion::Op  op)

Moves the iterator to the topmost element with the specified RegionOp and returns that element.

If no clip element with that op is found, the first element is returned.


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