PainterVerticalAlpha is only used within TouchGFX.
 
Symbols
loading...
Files
loading...

PainterVerticalAlpha class

@class PainterVerticalAlpha PainterVerticalAlpha.hpp gui/common/PainterVerticalAlpha.hpp A Painter that will paint using a fading color. PainterVerticalAlpha will paint using the given color at y coordinate 0 fading the color to invisible at the given y coordinate. @see AbstractPainter

Syntax

class PainterVerticalAlpha : #if !defined(USE_BPP) || USE_BPP==16     public AbstractPainterRGB565 #elif USE_BPP==24 public AbstractPainterRGB888 #elif USE_BPP==4 public AbstractPainterGRAY4 #elif USE_BPP==2 public AbstractPainterGRAY2 #else #error Unknown USE_BPP #endif { public:     PainterVerticalAlpha(colortype color = 0, int alpha0atY = 100);     void setColor(colortype color, int alphaZeroAt);     virtual void render(uint8_t* ptr, int x, int xAdjust, int y, unsigned count, const uint8_t* covers); protected:     virtual bool renderInit(); #if !defined(USE_BPP) || USE_BPP==16 || USE_BPP==24     virtual bool renderNext(uint8_t& pixelRed, uint8_t& pixelGreen, uint8_t& pixelBlue, uint8_t& pixelAlpha);     uint8_t painterRed;        uint8_t painterGreen;      uint8_t painterBlue;   #elif USE_BPP==4 || USE_BPP==2     virtual bool renderNext(uint8_t& gray, uint8_t& alpha);     uint8_t painterGray;    #else #error Unknown USE_BPP #endif     uint8_t painterAlpha;      int alpha0atY;  private: };

Fields

painterRed

No summary provided. Read more...

painterGreen

No summary provided. Read more...

painterBlue

No summary provided. Read more...

painterAlpha

No summary provided. Read more...

alpha0atY

No summary provided. Read more...

Methods

setColor()

@fn void PainterVerticalAlpha::setColor(colortype color, int alphaZeroAt); Sets color and alpha to use when drawing the CanvasWidget. Sets color and alpha to use when drawing the CanvasWidget. Read more...

render()

No summary provided. Read more...

renderInit()

@fn virtual bool PainterVerticalAlpha::renderInit(); Get ready to render (part of) a scanline. Get ready to render (part of) a scanline. Since the scanline will have the same y coordinate, the alpha for the scanline can be calculated here and used for all pixels in the scanline. Read more...

renderNext()

No summary provided. Read more...

References

LocationReferrerScopeText
PainterVerticalAlpha.hpp:49
class PainterVerticalAlpha :
Graph.hpp:240Graph::graphAreaPainterGraph
PainterVerticalAlpha graphAreaPainter; ///< Painter for area below graph
PainterVerticalAlpha.cpp:23PainterVerticalAlpha::PainterVerticalAlpha()
PainterVerticalAlpha::PainterVerticalAlpha(colortype color /*= 0*/, int alpha0atY /*= 100*/)
PainterVerticalAlpha.cpp:28PainterVerticalAlpha::setColor()
void PainterVerticalAlpha::setColor(colortype color, int alphaZeroAt)
PainterVerticalAlpha.cpp:42PainterVerticalAlpha::renderInit()
bool PainterVerticalAlpha::renderInit()
PainterVerticalAlpha.cpp:57PainterVerticalAlpha::render()
void PainterVerticalAlpha::render(uint8_t* ptr, int x, int xAdjust, int y, unsigned count, const uint8_t* covers)
PainterVerticalAlpha.cpp:149PainterVerticalAlpha::renderNext()
bool PainterVerticalAlpha::renderNext(uint8_t& pixelRed, uint8_t& pixelGreen, uint8_t& pixelBlue, uint8_t& pixelAlpha)

Class Tree

Child classes
PainterVerticalAlpha
all items filtered out
Variables of PainterVerticalAlpha type
all items filtered out
PainterVerticalAlpha