TouchGFX + 0/3 examples
CodeScope will show references to touchgfx::CanvasWidgetRenderer from the following samples and libraries:
Examples
STM32469I-Discovery
Demonstrations
STM32469I_EVAL
Demonstrations
STM324x9I_EVAL
Demonstrations
 
Symbols
loading...
Files
loading...
CodeScopeSTM32 Libraries and SamplesTouchGFXtouchgfx::CanvasWidgetRenderer

touchgfx::CanvasWidgetRenderer class

@class CanvasWidgetRenderer CanvasWidgetRenderer.hpp touchgfx/canvas_widget_renderer/CanvasWidgetRenderer.hpp Class for supporting drawing of figures. Class for supporting drawing of figures. This class holds the memory which is used by the underlying algorithms. CanvasWidget will not allocate memory dynamically, but will use memory from the buffer kept in CanvasWidgetRenderer. When using the TouchGFX simulator, it is also possible to get a report on the actual amount of memory used for the drawings to help adjusting the buffer size. @see Widget

Syntax

class CanvasWidgetRenderer : public Widget { public:     static void setupBuffer(uint8_t* buffer, unsigned bufsize);     static bool setScanlineWidth(unsigned width);     static bool hasBuffer();     static unsigned getScanlineWidth();     static void* getScanlineCovers();     static void* getScanlineStartIndices();     static void* getScanlineCounts();     static Cell* getOutlineBuffer();     static unsigned int getOutlineBufferSize(); #ifdef SIMULATOR     static void setWriteMemoryUsageReport(bool writeUsageReport);     static bool getWriteMemoryUsageReport();     static void numCellsUsed(unsigned used);     static void numCellsMissing(unsigned missing);     static unsigned getUsedBufferSize();     static unsigned getMissingBufferSize(); #endif private:     static uint8_t* memoryBuffer;     static unsigned int memoryBufferSize;     static unsigned int scanlineWidth;     static void* scanlineCovers;     static void* scanlineStartIndices;     static void* scanlineCounts;     static Cell* outlineBuffer;     static unsigned int outlineBufferSize; #ifdef SIMULATOR     static unsigned int scanlineSize;     static unsigned int maxCellsUsed;     static unsigned int maxCellsMissing;     static bool writeReport; #endif };

Fields

scanlineCounts

No summary provided. Read more...

outlineBuffer

No summary provided. Read more...

outlineBufferSize

No summary provided. Read more...

memoryBuffer

No summary provided. Read more...

memoryBufferSize

No summary provided. Read more...

scanlineWidth

No summary provided. Read more...

scanlineCovers

No summary provided. Read more...

scanlineStartIndices

No summary provided. Read more...

Methods

setupBuffer()

@fn static void CanvasWidgetRenderer::setupBuffer(uint8_t* buffer, unsigned bufsize) Setup the buffers used by CanvasWidget. Setup the buffers used by CanvasWidget. Read more...

setScanlineWidth()

@fn static bool CanvasWidgetRenderer::setScanlineWidth(unsigned width) Sets scanline width. Sets scanline width. Setting the scanline width will initialize the buffers for scanline and outline. If the width set is too large to fit the scanline buffers in the allocated memory buffer, false will be returned and all buffer pointers will be cleared. Read more...

hasBuffer()

@fn static bool CanvasWidgetRenderer::hasBuffer() Query if CanvasWidgetRenderer has been initialized with a buffer. Query if CanvasWidgetRenderer has been initialized with a buffer. Read more...

getScanlineWidth()

@fn static unsigned CanvasWidgetRenderer::getScanlineWidth() The width of a scanline. The width of a scanline. This is the same as the width of the invalidated area. Used to optimize the memory layout of the buffer. Read more...

getScanlineCovers()

@fn static void* CanvasWidgetRenderer::getScanlineCovers() Gets pointer to memory used for covers in Scanline. Gets pointer to memory used for covers in Scanline. Read more...

getScanlineStartIndices()

@fn static void* CanvasWidgetRenderer::getScanlineStartIndices() Gets pointer to memory used for indices in Scanline. Gets pointer to memory used for indices in Scanline. Read more...

getScanlineCounts()

@fn static void* CanvasWidgetRenderer::getScanlineCounts() Gets pointer to memory used for counts in Scanline. Gets pointer to memory used for counts in Scanline. Read more...

getOutlineBuffer()

@fn static Cell* CanvasWidgetRenderer::getOutlineBuffer() Gets pointer to memory used for Cell objects in Outline. Gets pointer to memory used for Cell objects in Outline. Read more...

getOutlineBufferSize()

@fn static unsigned int CanvasWidgetRenderer::getOutlineBufferSize() Gets size of memory area used for Cell objects in Outline. Gets size of memory area used for Cell objects in Outline. Read more...

Examples

touchgfx::CanvasWidgetRenderer is referenced by 3 libraries and example projects.

References

LocationReferrerText
CanvasWidgetRenderer.hpp:43
class CanvasWidgetRenderer : public Widget
Scanline.hpp:332touchgfx::Scanline::addCell()
if (unsigned(x) >= CanvasWidgetRenderer::getScanlineWidth())

Class Tree

Child classes
touchgfx::CanvasWidgetRenderer
all items filtered out