C++ DevKit
C++ set of OOP library
Loading...
Searching...
No Matches
CanvasVLSB Class Reference

A special version of canvas for monochrome widget (and device) with 8pixel/byte arranged vertically. More...

#include <canvas.h>

Inheritance diagram for CanvasVLSB:
Inheritance graph
Collaboration diagram for CanvasVLSB:
Collaboration graph

Public Member Functions

 CanvasVLSB (uint8_t canvas_width_pixel, uint8_t canvas_height_pixel)
 Construct a new Canvas V L S B object.
 
void fill_canvas_with_color (ColorIndex color)
 fill the canvas buffer with 0x00 (i.e. BLACK) of 0xFF (WHITE)
 
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.
 
void clear_canvas_buffer ()
 fill the canvas buffer with 0x00
 

Additional Inherited Members

- Public Attributes inherited from Canvas
CanvasFormat canvas_format
 the actual format of the canvas
 
ColorIndex canvas_fg_color
 a copy of the widget foreground color
 
ColorIndex canvas_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
 the size (in bytes) of the buffer
 
uint8_t * canvas_buffer {nullptr}
 the buffer
 

Detailed Description

A special version of canvas for monochrome widget (and device) with 8pixel/byte arranged vertically.

Constructor & Destructor Documentation

◆ CanvasVLSB()

CanvasVLSB::CanvasVLSB ( uint8_t canvas_width_pixel,
uint8_t canvas_height_pixel )

Construct a new Canvas V L S B object.

Parameters
canvas_width_pixel
canvas_height_pixel
Here is the call graph for this function:

Member Function Documentation

◆ draw_pixel()

void CanvasVLSB::draw_pixel ( const int x,
const int y,
const ColorIndex color = ColorIndex::WHITE )
virtual

the graphic primitive to draw a pixel

Parameters
xthe x position of the pixel
ythe y position of the pixel
colorthe color of the pixel

Implements Canvas.

◆ fill_canvas_with_color()

void CanvasVLSB::fill_canvas_with_color ( ColorIndex color)
virtual

fill the canvas buffer with 0x00 (i.e. BLACK) of 0xFF (WHITE)

Parameters
color

Implements Canvas.


The documentation for this class was generated from the following files: