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
scanlineCounts
outlineBuffer
outlineBufferSize
memoryBuffer
memoryBufferSize
scanlineWidth
scanlineCovers
scanlineStartIndices
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.
Child classes
touchgfx::CanvasWidgetRenderer