touchgfx::Scanline::iterator is only used within TouchGFX.
 
Symbols
loading...
Files
loading...

touchgfx::Scanline::iterator class

@class iterator Scanline.hpp touchgfx/canvas_widget_renderer/Scanline.hpp An iterator to help go through all the elements that make up a Scanline. An iterator to help go through all the elements that make up a Scanline. Each part of the Scanline has a different Cover.

Syntax

class iterator { public:     iterator(const Scanline& scanline) :         covers(scanline.covers),         curCount(scanline.counts),         curStartIndex(scanline.startIndices)     {     }     int next()     {         ++curCount;         ++curStartIndex;         return int(*curStartIndex);     }     int getNumPix() const     {         return int(*curCount);     }     const uint8_t* getCovers() const     {         return covers + *curStartIndex;     } private:     const uint8_t*  covers;     const uint16_t* curCount;     const uint16_t* curStartIndex; };

Fields

covers

No summary provided. Read more...

curCount

No summary provided. Read more...

curStartIndex

No summary provided. Read more...

Methods

next()

@fn int iterator::next() Gets the next element on the Scanline. Gets the next element on the Scanline. Read more...

getNumPix() const

@fn int iterator::getNumPix() const Gets number of consecutive pixels in the current run on the Scanline. Gets number of consecutive pixels in the current run on the Scanline. Read more...

getCovers() const

@fn const uint8_t* iterator::getCovers() const Gets the covers in the current run on the Scanline. Gets the covers in the current run on the Scanline. Read more...

References

LocationReferrerScopeText
Scanline.hpp:113
class iterator
Renderer.hpp:99touchgfx::Renderer::render()
Scanline::iterator spanIterator(scanline);
Scanline.hpp:184
friend class iterator;

Type Use

Variables of touchgfx::Scanline::iterator type
touchgfx::Renderer::render()::spanIterator
all items filtered out
touchgfx::Scanline::iterator
Allocators of touchgfx::Scanline::iterator
Deletors of touchgfx::Scanline::iterator
touchgfx::Renderer::render()::spanIterator
all items filtered out
touchgfx::Scanline::iterator
touchgfx::Renderer::render()::spanIterator
all items filtered out