Skip to main content

CWRVectorRendererRGB888

touchgfx/widgets/canvas/CWRVectorRenderer.hpp

Implementation of the CWRVectorRendererInterface for the RGB888 framebuffer format.

Inherits from: CWRVectorRenderer, VectorRenderer

Additional inherited members

Public Functions inherited from CWRVectorRenderer

virtual voiddrawPath(const uint8_t cmds, uint32_t nCmds, const float points, uint32_t nPoints, const float * bbox =0)
Draw a Path defined by the given array of primitives (commands) and an array of the corresponding floating point coordinates.
virtual voidsetAlpha(uint8_t a)
Set the alpha value (opacity) used for future drawings.
virtual voidsetColor(colortype c)
Set a constant color used for future drawings.
virtual voidsetLinearGradient(float x0, float y0, float x1, float y1, uint32_t stops, const float stopPositions, const uint32_t stopColors, float width, float height, bool solid, const uint32_t * palette)
Set a linear gradient used for future drawings.
virtual voidsetMode(DrawMode mode)
Set the drawing mode for the VectorRenderer.
virtual voidsetRadialGradient(float cx, float cy, float radius, uint32_t stops, const float stopPositions, const colortype stopColors)
Set a radial gradient used for future drawings.
virtual voidsetStrokeLineCap(VGStrokeLineCap lineCap)
Sets stroke line cap type.
virtual voidsetStrokeLineJoin(VGStrokeLineJoin lineJoin)
Sets stroke line join type.
virtual voidsetStrokeMiterLimit(float miterLimit)
Sets stroke miter limit.
virtual voidsetStrokeWidth(float w)
Set the width used for future drawings using the VECTOR_STROKE drawing mode.
virtual voidsetTransformationMatrix(const Matrix3x3 & m)
Sets the transformation matrix used for future drawings.
virtual voidsetup(const Widget & renderer, const Rect & drawingArea)
Start a new drawing in the given area.
virtual voidtearDown()
Finalizes the current drawing.

Public Types inherited from VectorRenderer

enumDrawMode { STROKE, FILL_EVEN_ODD, FILL_NON_ZERO }
A list of vector graphics drawing modes.

Public Functions inherited from VectorRenderer

virtual voiddrawPath(const uint8_t cmds, uint32_t nCmds, const float points, uint32_t nPoints, const float * bbox =0) =0
Draw a Path defined by the given array of primitives (commands) and an array of the corresponding floating point coordinates.
virtual voidsetAlpha(uint8_t a) =0
Set the alpha value (opacity) used for future drawings.
virtual voidsetColor(colortype c) =0
Set a constant color used for future drawings.
virtual voidsetLinearGradient(float x0, float y0, float x1, float y1, uint32_t stops, const float stopPositions, const uint32_t stopColors, float width, float height, bool solid, const uint32_t * palette) =0
Set a linear gradient used for future drawings.
virtual voidsetMode(DrawMode mode) =0
Set the drawing mode for the VectorRenderer.
virtual voidsetStrokeLineCap(VGStrokeLineCap lineCap) =0
Sets stroke line cap type.
virtual voidsetStrokeLineJoin(VGStrokeLineJoin lineJoin) =0
Sets stroke line join type.
virtual voidsetStrokeMiterLimit(float miterLimit) =0
Sets stroke miter limit.
virtual voidsetStrokeWidth(float w) =0
Set the width used for future drawings using the VECTOR_STROKE drawing mode.
virtual voidsetTransformationMatrix(const Matrix3x3 & m) =0
Sets the transformation matrix used for future drawings.
virtual voidsetup(const Widget & renderer, const Rect & drawingArea) =0
Start a new drawing in the given area.
virtual voidtearDown() =0
Finalizes the current drawing.
virtual ~VectorRenderer()
Virtual destructor.
VectorRenderer *getInstance()
Gets the VectorRenderer instance.