touchgfx::AbstractPainter is only used within TouchGFX.
 
Symbols
loading...
Files
loading...

touchgfx::AbstractPainter class

@class AbstractPainter AbstractPainter.hpp touchgfx/widgets/canvas/AbstractPainter.hpp An abstract class for creating painter classes for drawing canvas widgets. An abstract class for creating painter classes for drawing canvas widgets.

Syntax

class AbstractPainter { public:     AbstractPainter();     virtual ~AbstractPainter();     void setOffset(uint16_t offsetX, uint16_t offsetY);     virtual void render(uint8_t* ptr, int x, int xAdjust, int y, unsigned count, const uint8_t* covers) = 0; protected:     void setWidgetAlpha(uint8_t alpha);     int16_t areaOffsetX;      int16_t areaOffsetY;      uint8_t widgetAlpha;      friend class Canvas; };

Fields

areaOffsetX

No summary provided. Read more...

areaOffsetY

No summary provided. Read more...

widgetAlpha

No summary provided. Read more...

Methods

setOffset()

@fn void AbstractPainter::setOffset(uint16_t offsetX, uint16_t offsetY); Sets the offset of the area being drawn. Sets the offset of the area being drawn. This allows render() to calculate the x, y relative to the widget, and not just relative to the invalidated area. Read more...

render()

@fn virtual void AbstractPainter::render(uint8_t* ptr, int x, int xAdjust, int y, unsigned count, const uint8_t* covers) = 0; Paint a designated part of the RenderingBuffer. Paint a designated part of the RenderingBuffer with respect to the amount of coverage of each pixel given by the parameter covers. Read more...

setWidgetAlpha()

@fn void AbstractPainter::setWidgetAlpha(uint8_t alpha); Sets widget alpha. Sets the widget alpha to allow an entire canvas widget to easily be faded without changing the painter of the widget. Read more...