Flutter Engine
The Flutter Engine
|
#include <SkRegion.h>
Public Member Functions | |
Spanerator (const SkRegion ®ion, int y, int left, int right) | |
bool | next (int *left, int *right) |
Returns the line segment ends within SkRegion that intersect a horizontal line.
Definition at line 563 of file SkRegion.h.
Sets SkRegion::Spanerator to return line segments in SkRegion on scan line.
region | SkRegion to iterate |
y | horizontal line to intersect |
left | bounds of iteration |
right | bounds of iteration |
example: https://fiddle.skia.org/c/@Region_Spanerator_const_SkRegion_int_int_int
Definition at line 1466 of file SkRegion.cpp.
Advances iterator to next span intersecting SkRegion within line segment provided in constructor. Returns true if interval was found.
left | pointer to span start; may be nullptr |
right | pointer to span end; may be nullptr |
example: https://fiddle.skia.org/c/@Region_Spanerator_next
Definition at line 1510 of file SkRegion.cpp.