Skia
2D Graphics Library
|
Returns sequence of rectangles, sorted along y-axis, then x-axis, that make up SkRegion. More...
#include <SkRegion.h>
Public Member Functions | |
Iterator () | |
Initializes SkRegion::Iterator with an empty SkRegion. More... | |
Iterator (const SkRegion ®ion) | |
Sets SkRegion::Iterator to return elements of SkIRect array in region. More... | |
bool | rewind () |
SkPoint SkRegion::Iterator to start of SkRegion. More... | |
void | reset (const SkRegion ®ion) |
Resets iterator, using the new SkRegion. More... | |
bool | done () const |
Returns true if SkRegion::Iterator is pointing to final SkIRect in SkRegion. More... | |
void | next () |
Advances SkRegion::Iterator to next SkIRect in SkRegion if it is not done. More... | |
const SkIRect & | rect () const |
Returns SkIRect element in SkRegion. More... | |
const SkRegion * | rgn () const |
Returns SkRegion if set; otherwise, returns nullptr. More... | |
Returns sequence of rectangles, sorted along y-axis, then x-axis, that make up SkRegion.
|
inline |
Initializes SkRegion::Iterator with an empty SkRegion.
done() on SkRegion::Iterator returns true. Call reset() to initialized SkRegion::Iterator at a later time.
SkRegion::Iterator::Iterator | ( | const SkRegion & | region | ) |
Sets SkRegion::Iterator to return elements of SkIRect array in region.
region | SkRegion to iterate |
example: https://fiddle.skia.org/c/@Region_Iterator_copy_const_SkRegion
|
inline |
Returns true if SkRegion::Iterator is pointing to final SkIRect in SkRegion.
void SkRegion::Iterator::next | ( | ) |
Advances SkRegion::Iterator to next SkIRect in SkRegion if it is not done.
|
inline |
void SkRegion::Iterator::reset | ( | const SkRegion & | region | ) |
bool SkRegion::Iterator::rewind | ( | ) |
SkPoint SkRegion::Iterator to start of SkRegion.
Returns true if SkRegion was set; otherwise, returns false.
|
inline |