|
MyRP2_ui_core
|
This is the abstract class to handle all generic behavior of physical display devices (e.g. OLED screen SSD1306). It derived from Framebuffer. This allows to draw text and graphics directly into the display framebuffer thanks to Framebuffet class text and graphic primitives. More...
#include <ui_core.h>
Public Member Functions | |
| UIDisplayDevice (size_t width, size_t height, FramebufferFormat format=FramebufferFormat::MONO_VLSB, StructFramebufferText txt_cnf={.font=font_8x8}) | |
| Construct a new UIDisplayDevice object. | |
| virtual | ~UIDisplayDevice () |
| Destroy the UIDisplayDevice object. | |
| virtual void | show ()=0 |
| This is an pure virtual member function that all final derived class must implement. It transfers the framebuffer buffer to the entire display screen buffer. | |
| virtual void | show (Framebuffer *frame, uint8_t anchor_x, uint8_t anchor_y)=0 |
| This is an pure virtual member function that all final derived class must implement. It transfers the framebuffer buffer to the a part of display screen buffer starting at the (anchor_x, anchor_y) coordinates of the screen , expressed in pixel. | |
This is the abstract class to handle all generic behavior of physical display devices (e.g. OLED screen SSD1306). It derived from Framebuffer. This allows to draw text and graphics directly into the display framebuffer thanks to Framebuffet class text and graphic primitives.
| UIDisplayDevice::UIDisplayDevice | ( | size_t | width, |
| size_t | height, | ||
| FramebufferFormat | format = FramebufferFormat::MONO_VLSB, | ||
| StructFramebufferText | txt_cnf = {.font = font_8x8} ) |
Construct a new UIDisplayDevice object.
| width | The width of physical screen, in pixel. |
| height | The height of physical screen, in pixel. |
| format | The framebuffer format ... see Framebuffer class FramebufferFormat enumeration |
| txt_cnf | A structure of datga that reflect the framebuffer member related to text primitives |
Definition at line 3 of file ui_core.cpp.
|
virtual |
Destroy the UIDisplayDevice object.
Definition at line 8 of file ui_core.cpp.
|
pure virtual |
This is an pure virtual member function that all final derived class must implement. It transfers the framebuffer buffer to the a part of display screen buffer starting at the (anchor_x, anchor_y) coordinates of the screen , expressed in pixel.
| frame | a pointer to the frame 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) |