Skia
2DGraphicsLibrary
|
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 SkMatrix & | matrix () const |
void | clip (SkRegion *) const |
const SkPaint & | paint () const |
int | x () const |
int | y () const |
Private Attributes | |
intptr_t | fStorage [32] |
class SkDrawIter * | fImpl |
SkPaint | fDefaultPaint |
bool | fDone |
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.