This is the abstract class to handle all generic behavior of physical graphic display devices (e.g. OLED screen SSD1306).
More...
#include <display_device.h>
|
| virtual void | check_display_device_compatibility (struct_ConfigGraphicWidget framebuffer_cfg, CanvasFormat canvas_format)=0 |
| | A pure virtual member function. Each device must implement this method and check the compatibility of the widget parameter with the its physical limitations.
|
| |
| virtual void | show (Canvas *canvas, const uint8_t anchor_x, const uint8_t anchor_y)=0 |
| | A pure virtual member function. It transfers the pixel buffer to the a part of display screen buffer starting at the (anchor_x, anchor_y) coordinates of the screen , expressed in pixel. This method takes into account the specific addressing scheme and memory structure of the actual display device.
|
| |
| | GraphicDisplayDevice (size_t screen_width, size_t screen_height) |
| | Construct a new Display Device object.
|
| |
|
virtual | ~GraphicDisplayDevice () |
| | Destroy the Display Device object.
|
| |
|
|
size_t | TFT_panel_width_in_pixel |
| | the physical width of the screen (in pixel)
|
| |
|
size_t | TFT_panel_height_in_pixel |
| | the physical height of the screen (in pixel)
|
| |
This is the abstract class to handle all generic behavior of physical graphic display devices (e.g. OLED screen SSD1306).
◆ GraphicDisplayDevice()
| GraphicDisplayDevice::GraphicDisplayDevice |
( |
size_t | screen_width, |
|
|
size_t | screen_height ) |
Construct a new Display Device object.
- Parameters
-
| screen_width | The width of physical screen, in pixel |
| screen_height | The height of physical screen, in pixel. |
◆ check_display_device_compatibility()
A pure virtual member function. Each device must implement this method and check the compatibility of the widget parameter with the its physical limitations.
- Parameters
-
| framebuffer_cfg | the widget configuration data |
| canvas_format | the format of the canvas |
Implemented in SSD1306, and ST7735.
◆ show()
| virtual void GraphicDisplayDevice::show |
( |
Canvas * | canvas, |
|
|
const uint8_t | anchor_x, |
|
|
const uint8_t | anchor_y ) |
|
pure virtual |
A pure virtual member function. It transfers the pixel buffer to the a part of display screen buffer starting at the (anchor_x, anchor_y) coordinates of the screen , expressed in pixel. This method takes into account the specific addressing scheme and memory structure of the actual display device.
- Parameters
-
| canvas | a pointer to the canvas that contains the buffer to be displayed |
| anchor_x | the x(horizontal) starting position of the frame within the display screen,(in pixel) |
| anchor_y | the y(vertical) starting position of the frame within the display screen,(in pixel) |
Implemented in rtos_ST7735, SSD1306, and ST7735.
The documentation for this class was generated from the following files: