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:
aSerializedSerialized stateaPosPosition of the element (output)aSizeSize of the element (output)isFocusedFocus 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:
aPositionPosition on screenaSizeSize of the symbolaCharcodeCharacter codeaColorColor/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:
aPosPosition of the elementaSizeSize of the elementisFocusedFocus 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