Flutter Engine
The Flutter Engine
|
#include <SkRegion.h>
Public Member Functions | |
Cliperator (const SkRegion ®ion, const SkIRect &clip) | |
bool | done () |
void | next () |
const SkIRect & | rect () const |
Returns the sequence of rectangles, sorted along y-axis, then x-axis, that make up SkRegion intersected with the specified clip rectangle.
Definition at line 520 of file SkRegion.h.
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
Definition at line 1427 of file SkRegion.cpp.
|
inline |
Returns true if SkRegion::Cliperator is pointing to final SkIRect in SkRegion.
Definition at line 537 of file SkRegion.h.
void SkRegion::Cliperator::next | ( | ) |
Advances iterator to next SkIRect in SkRegion contained by clip.
example: https://fiddle.skia.org/c/@Region_Cliperator_next
Definition at line 1443 of file SkRegion.cpp.
|
inline |
Returns SkIRect element in SkRegion, intersected with clip passed to SkRegion::Cliperator constructor. Does not return predictable results if SkRegion is empty.
Definition at line 551 of file SkRegion.h.