Skip to content

Class evab::ScreenSerialText

ClassList > evab > ScreenSerialText

Debug screen that renders text to serial output. More...

  • #include <evabScreenSerialText.h>

Inherits the following classes: evab::Screen

Public Functions

Type Name
void Clear ()
Clears the text buffer.
virtual void Deserialize (unsigned short aSerialized, Coor & aPos, Coor & aSize, bool & isFocused)
Deserializes element state for 16x8 screen.
virtual void DrawSymbol (Coor aPosition, Coor aSize, char aCharcode, unsigned char aColor) override
Draws a symbol in the text buffer.
void PrintToSerial ()
Prints the text buffer to serial for debugging.
ScreenSerialText ()
Constructor for serial text screen.
virtual unsigned short Serialize (const Coor & aPos, const Coor & aSize, bool isFocused)
Serializes element state for 16x8 screen.
virtual Coor Size () override
Gets the screen size in characters.

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

Used for debugging UI layout without physical hardware. Displays characters in a 16x8 rest.

Public Functions Documentation

function Clear

Clears the text buffer.

void evab::ScreenSerialText::Clear () 

function Deserialize

Deserializes element state for 16x8 screen.

virtual void evab::ScreenSerialText::Deserialize (
    unsigned short aSerialized,
    Coor & aPos,
    Coor & aSize,
    bool & isFocused
) 

Parameters:

  • aSerialized Serialized state
  • aPos Position of the element (output)
  • aSize Size of the element (output)
  • isFocused Focus state (output)

Implements evab::Screen::Deserialize


function DrawSymbol

Draws a symbol in the text buffer.

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

Parameters:

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

Implements evab::Screen::DrawSymbol


function PrintToSerial

Prints the text buffer to serial for debugging.

void evab::ScreenSerialText::PrintToSerial () 

function ScreenSerialText

Constructor for serial text screen.

evab::ScreenSerialText::ScreenSerialText () 

function Serialize

Serializes element state for 16x8 screen.

virtual unsigned short evab::ScreenSerialText::Serialize (
    const Coor & aPos,
    const Coor & aSize,
    bool isFocused
) 

Parameters:

  • aPos Position of the element
  • aSize Size of the element
  • isFocused Focus state

Returns:

unsigned short Serialized state

Implements evab::Screen::Serialize


function Size

Gets the screen size in characters.

virtual Coor evab::ScreenSerialText::Size () override

Returns:

Coor Screen dimensions (16x8 chars)

Implements evab::Screen::Size



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