Skia
2D Graphics Library

#include <SkRegion.h>
Public Member Functions  
Spanerator (const SkRegion ®ion, int y, int left, int right)  
Sets SkRegion::Spanerator to return line segments in SkRegion on scan line. More...  
bool  next (int *left, int *right) 
Advances iterator to next span intersecting SkRegion within line segment provided in constructor. More...  
Returns the line segment ends within SkRegion that intersect a horizontal line.
SkRegion::Spanerator::Spanerator  (  const SkRegion &  region, 
int  y,  
int  left,  
int  right  
) 
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
bool SkRegion::Spanerator::next  (  int *  left, 
int *  right  
) 
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 