Skip to content

Class evab::ScreenSerialPixel

ClassList > evab > ScreenSerialPixel

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

  • #include <evabScreenSerialPixel.h>

Inherits the following classes: evab::ScreenPage8Base

Public Functions

Type Name
virtual void Deserialize (unsigned short aSerialized, Coor & aPos, Coor & aSize, bool & isFocused)
Deserializes element state for 16x8 screen.
void PrintToSerial ()
Prints the pixel buffer to serial for debugging.
ScreenSerialPixel (IFont * aFont)
Constructor for serial pixel 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 tiles.
void clear ()
Clears the pixel buffer.

Public Functions inherited from evab::ScreenPage8Base

See evab::ScreenPage8Base

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

Used for debugging UI layout without physical hardware.

Public Functions Documentation

function Deserialize

Deserializes element state for 16x8 screen.

virtual void evab::ScreenSerialPixel::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 PrintToSerial

Prints the pixel buffer to serial for debugging.

void evab::ScreenSerialPixel::PrintToSerial () 

function ScreenSerialPixel

Constructor for serial pixel screen.

evab::ScreenSerialPixel::ScreenSerialPixel (
    IFont * aFont
) 

Parameters:

  • aFont Font to use

function Serialize

Serializes element state for 16x8 screen.

virtual unsigned short evab::ScreenSerialPixel::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 tiles.

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

Returns:

Coor Screen dimensions (16x8 tiles)

Implements evab::Screen::Size


function clear

Clears the pixel buffer.

void evab::ScreenSerialPixel::clear () 


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