Skia
2DGraphicsLibrary
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
SkCanvas::LayerIter Class Reference

After calling saveLayer(), there can be any number of devices that make up the top-most drawing area. More...

Public Member Functions

 LayerIter (SkCanvas *)
 Initialize iterator with canvas, and set values for 1st device.
 
bool done () const
 Return true if the iterator is done.
 
void next ()
 Cycle to the next device.
 
SkBaseDevice * device () const
 
const SkMatrixmatrix () const
 
void clip (SkRegion *) const
 
const SkPaintpaint () const
 
int x () const
 
int y () const
 

Private Attributes

intptr_t fStorage [32]
 
class SkDrawIter * fImpl
 
SkPaint fDefaultPaint
 
bool fDone
 

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.


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