Skia
2DGraphicsLibrary
|
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 Element * | next () |
Return the clip element for this iterator. More... | |
const Element * | prev () |
const Element * | skipToTopmost (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 SkClipStack * | fStack |
SkDeque::Iter | fIter |
SkClipStack::Iter::Iter | ( | ) |
Creates an uninitialized iterator.
Must be reset()
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.