![]() |
Flutter Engine
The Flutter Engine
|
#include <SkRegion.h>
Public Member Functions | |
Iterator () | |
Iterator (const SkRegion ®ion) | |
bool | rewind () |
void | reset (const SkRegion ®ion) |
bool | done () const |
void | next () |
const SkIRect & | rect () const |
const SkRegion * | rgn () const |
Returns sequence of rectangles, sorted along y-axis, then x-axis, that make up SkRegion.
Definition at line 447 of file SkRegion.h.
|
inline |
Initializes SkRegion::Iterator with an empty SkRegion. done() on SkRegion::Iterator returns true. Call reset() to initialized SkRegion::Iterator at a later time.
Definition at line 456 of file SkRegion.h.
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
Definition at line 1357 of file SkRegion.cpp.
|
inline |
Returns true if SkRegion::Iterator is pointing to final SkIRect in SkRegion.
Definition at line 488 of file SkRegion.h.
void SkRegion::Iterator::next | ( | ) |
Advances SkRegion::Iterator to next SkIRect in SkRegion if it is not done.
example: https://fiddle.skia.org/c/@Region_Iterator_next
Definition at line 1387 of file SkRegion.cpp.
|
inline |
void SkRegion::Iterator::reset | ( | const SkRegion & | region | ) |
Resets iterator, using the new SkRegion.
region | SkRegion to iterate |
example: https://fiddle.skia.org/c/@Region_Iterator_reset
Definition at line 1369 of file SkRegion.cpp.
bool SkRegion::Iterator::rewind | ( | ) |
SkPoint SkRegion::Iterator to start of SkRegion. Returns true if SkRegion was set; otherwise, returns false.
example: https://fiddle.skia.org/c/@Region_Iterator_rewind
Definition at line 1361 of file SkRegion.cpp.
|
inline |
Returns SkRegion if set; otherwise, returns nullptr.
Definition at line 507 of file SkRegion.h.