Skia
2D Graphics Library
|
Returns the sequence of rectangles, sorted along y-axis, then x-axis, that make up SkRegion intersected with the specified clip rectangle. More...
#include <SkRegion.h>
Public Member Functions | |
Cliperator (const SkRegion ®ion, const SkIRect &clip) | |
Sets SkRegion::Cliperator to return elements of SkIRect array in SkRegion within clip. More... | |
bool | done () |
Returns true if SkRegion::Cliperator is pointing to final SkIRect in SkRegion. More... | |
void | next () |
Advances iterator to next SkIRect in SkRegion contained by clip. More... | |
const SkIRect & | rect () const |
Returns SkIRect element in SkRegion, intersected with clip passed to SkRegion::Cliperator constructor. More... | |
Returns the sequence of rectangles, sorted along y-axis, then x-axis, that make up SkRegion intersected with the specified clip rectangle.
Sets SkRegion::Cliperator to return elements of SkIRect array in SkRegion within clip.
region | SkRegion to iterate |
clip | bounds of iteration |
example: https://fiddle.skia.org/c/@Region_Cliperator_const_SkRegion_const_SkIRect
|
inline |
Returns true if SkRegion::Cliperator is pointing to final SkIRect in SkRegion.
void SkRegion::Cliperator::next | ( | ) |
|
inline |