Class evab::Screen¶
Base class for screen implementations. More...
#include <evabScreen.h>
Inherited by the following classes: evab::ScreenLCD_I2C, evab::ScreenPage8Base, evab::ScreenSerialText
Public Functions¶
| 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 low-level drawing operations and text rendering with alignment.
Public Functions Documentation¶
function Clear¶
virtual void evab::Screen::Clear (
Coor aPosition,
Coor aSize,
unsigned char aColor=0
)
function Deserialize¶
virtual void evab::Screen::Deserialize (
unsigned short aSerialized,
Coor & aPosition,
Coor & aSize,
bool & isFocused
) = 0
function DrawSymbol¶
virtual void evab::Screen::DrawSymbol (
Coor aPosition,
Coor aSize,
char aSymbol,
unsigned char aColor=0
) = 0
function Picto¶
virtual void evab::Screen::Picto (
Coor aPosition,
const unsigned char * aPictogram,
unsigned char aColor=0
)
function Serialize¶
virtual unsigned short evab::Screen::Serialize (
const Coor & aPosition,
const Coor & aSize,
bool isFocused
) = 0
function Size¶
virtual Coor evab::Screen::Size () = 0
function Text¶
Draws text with specified alignment strategy.
template<typename TAlign, typename TText>
inline void evab::Screen::Text (
Coor aPosition,
Coor aSize,
TText aText,
unsigned char aColor=0
)
Template parameters:
TAlignAlignment strategy (LeftAlign, CenterAlign, RightAlign)TTextText type (char*, const char*, __FlashStringHelper*)
Parameters:
aPositionPosition on screenaSizeAvailable area sizeaTextText to drawaColorColor/inversion flag
function TextCenter¶
template<typename T>
inline void evab::Screen::TextCenter (
Coor aPosition,
Coor aSize,
T aText,
unsigned char aColor=0
)
function TextLeft¶
template<typename T>
inline void evab::Screen::TextLeft (
Coor aPosition,
Coor aSize,
T aText,
unsigned char aColor=0
)
function TextRight¶
template<typename T>
inline void evab::Screen::TextRight (
Coor aPosition,
Coor aSize,
T aText,
unsigned char aColor=0
)
The documentation for this class was generated from the following file src/evabScreen.h