Skip to content

Class evab::ScreenPage8Base

ClassList > evab > ScreenPage8Base

Base class for page-based 8-bit screens. More...

  • #include <evabScreenPage8Base.h>

Inherits the following classes: evab::Screen

Inherited by the following classes: evab::ScreenKS0108, evab::ScreenPCD8544, evab::ScreenSSD1306, evab::ScreenSSH1106, evab::ScreenSerialPixel

Public Functions

Type Name
virtual void DrawSymbol (Coor aPosition, Coor aSize, char aCharcode, unsigned char aColor)
Draws a symbol at the specified position with scaling.
virtual void Picto (Coor aPosition, const unsigned char * aPictogram, unsigned char aColor)
Draws a pictogram at the specified position.
ScreenPage8Base (const IFont * aFont)
Constructor for page-based 8-bit screen base.

Public Functions inherited from evab::Screen

See evab::Screen

Type Name
virtual void Clear (Coor aPosition, Coor aSize, unsigned char aColor=0)
virtual void Deserialize (unsigned short aSerialized, Coor & aPosition, Coor & aSize, bool & isFocused) = 0
virtual void DrawSymbol (Coor aPosition, Coor aSize, char aSymbol, unsigned char aColor=0) = 0
virtual void Picto (Coor aPosition, const unsigned char * aPictogram, unsigned char aColor=0)
virtual unsigned short Serialize (const Coor & aPosition, const Coor & aSize, bool isFocused) = 0
virtual Coor Size () = 0
void Text (Coor aPosition, Coor aSize, TText aText, unsigned char aColor=0)
Draws text with specified alignment strategy.
void TextCenter (Coor aPosition, Coor aSize, T aText, unsigned char aColor=0)
void TextLeft (Coor aPosition, Coor aSize, T aText, unsigned char aColor=0)
void TextRight (Coor aPosition, Coor aSize, T aText, unsigned char aColor=0)

Detailed Description

Provides common rendering for screens organized in 8-pixel pages. Used by SSD1306, KS0108, PCD8544, and similar displays.

Public Functions Documentation

function DrawSymbol

Draws a symbol at the specified position with scaling.

virtual void evab::ScreenPage8Base::DrawSymbol (
    Coor aPosition,
    Coor aSize,
    char aCharcode,
    unsigned char aColor
) 

Parameters:

  • aPosition Position on screen
  • aSize Size of the symbol
  • aCharcode Character code
  • aColor Color/inversion flag

Implements evab::Screen::DrawSymbol


function Picto

Draws a pictogram at the specified position.

virtual void evab::ScreenPage8Base::Picto (
    Coor aPosition,
    const unsigned char * aPictogram,
    unsigned char aColor
) 

Parameters:

  • aPosition Position on screen
  • aPictogram Pictogram data
  • aColor Color/inversion flag

Implements evab::Screen::Picto


function ScreenPage8Base

Constructor for page-based 8-bit screen base.

evab::ScreenPage8Base::ScreenPage8Base (
    const IFont * aFont
) 

Parameters:

  • mFont Font to use for rendering


The documentation for this class was generated from the following file src/evabScreenPage8Base.h