|
C++ DevKit
C++ set of OOP library
|
A special version of canvas for color widget (and device) with true RGB_COLOR_INDEX_8b color coding(i.e. 16bit) per pixel. More...
#include <canvas.h>


Public Member Functions | |
| CanvasTrueRGB (uint8_t canvas_width_pixel, uint8_t canvas_height_pixel) | |
| Construct a new Canvas R G B object. | |
| virtual void | clear_canvas_buffer () |
| fill the 16bit canvas buffer with 0x00 | |
| void | fill_canvas_with_color (ColorIndex color) |
| fill the canvas buffer with the given color index | |
| void | draw_pixel (const int x, const int y, const ColorIndex color=ColorIndex::WHITE) |
| the graphic primitive to draw a pixel | |
Public Member Functions inherited from Canvas | |
| Canvas (uint8_t canvas_width_pixel, uint8_t canvas_height_pixel) | |
| Construct a new Canvas object. | |
Private Member Functions | |
| void | create_canvas_buffer () |
| Create a canvas buffer object. | |
Additional Inherited Members | |
Public Attributes inherited from Canvas | |
| CanvasFormat | canvas_format |
| the actual format of the canvas | |
| ColorIndex | fg_color |
| a copy of the widget foreground color | |
| ColorIndex | bg_color |
| a copy of the widget background color | |
| uint8_t | canvas_width_pixel |
| the width (in pixel) of the canvas and also of those of the associated widget | |
| uint8_t | canvas_height_pixel |
| the height (in pixel) of the canvas and also of those of the associated widget | |
| size_t | canvas_buffer_size_byte |
| the size (in bytes) of the buffer | |
| size_t | canvas_buffer_size_pixel |
| the size (in pixel) of the buffer | |
| uint8_t * | canvas_buffer {nullptr} |
| the 8bit canvas buffer | |
| uint16_t * | canvas_16buffer {nullptr} |
| the 16bit canvasbuffer | |
A special version of canvas for color widget (and device) with true RGB_COLOR_INDEX_8b color coding(i.e. 16bit) per pixel.
| CanvasTrueRGB::CanvasTrueRGB | ( | uint8_t | canvas_width_pixel, |
| uint8_t | canvas_height_pixel ) |
Construct a new Canvas R G B object.
| canvas_width_pixel | |
| canvas_height_pixel |

|
virtual |
fill the 16bit canvas buffer with 0x00
Reimplemented from Canvas.

|
privatevirtual |
Create a canvas buffer object.
Implements Canvas.


|
virtual |
the graphic primitive to draw a pixel
| x | the x position of the pixel |
| y | the y position of the pixel |
| color | the color of the pixel |
Implements Canvas.
|
virtual |
fill the canvas buffer with the given color index
| color |
Implements Canvas.