SkCanvas::LayerIter Class Reference

#include <SkCanvas.h>

Collaboration diagram for SkCanvas::LayerIter:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 LayerIter (SkCanvas *, bool skipEmptyClips)
 ~LayerIter ()
bool done () const
void next ()
SkDevicedevice () const
const SkMatrixmatrix () const
const SkRegionclip () const
const SkPaintpaint () const
int x () const
int y () const

Detailed Description

After calling saveLayer(), there can be any number of devices that make up the top-most drawing area. LayerIter can be used to iterate through those devices. Note that the iterator is only valid until the next API call made on the canvas. Ownership of all pointers in the iterator stays with the canvas, so none of them should be modified or deleted.

Definition at line 697 of file SkCanvas.h.


Constructor & Destructor Documentation

SkCanvas::LayerIter::LayerIter ( SkCanvas ,
bool  skipEmptyClips 
)

Initialize iterator with canvas, and set values for 1st device

SkCanvas::LayerIter::~LayerIter (  ) 

Member Function Documentation

const SkRegion& SkCanvas::LayerIter::clip (  )  const
SkDevice* SkCanvas::LayerIter::device (  )  const
bool SkCanvas::LayerIter::done (  )  const [inline]

Return true if the iterator is done

Definition at line 704 of file SkCanvas.h.

const SkMatrix& SkCanvas::LayerIter::matrix (  )  const
void SkCanvas::LayerIter::next (  ) 

Cycle to the next device

const SkPaint& SkCanvas::LayerIter::paint (  )  const
int SkCanvas::LayerIter::x (  )  const
int SkCanvas::LayerIter::y (  )  const

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