| << Gesamtübersicht | << Klassenübersicht | Details der Klasse | Funktionsbeschreibungen |
Abstraktes Interface für ein LCD-Display
| Basisklassen(n) | abgeleitete Klassen | ||
|---|---|---|---|
| PecLcd |
|
| Attribut | Typ | Beschreibung |
|---|---|---|
| caliBottom | uint16_t | |
| caliLeft | uint16_t | |
| caliRight | uint16_t | |
| caliTop | uint16_t | |
| gDisplay | PecLcd* | Globaler Pointer auf das aktuelle Display |
| Attribut | Typ | Beschreibung |
|---|---|---|
| bColor | color_t | Hintergrundfarbe des Lcd-Displays |
| fColor | color_t | Vordergrund/Schriftfarbe des lcd-Displays |
| font | PecFont* | Zeiger auf den verwendeten Font |
| Name | Parameter | Rückgabewert | Beschreibung |
|---|---|---|---|
| calibration | uint8_t posTodo | uint8_t | |
| clearScreen | void | Löscht den Bildschirm mit der backgroundColor | |
| drawChar | dim_t x, dim_t y, unsigned char c, dim_t maxWidth=-1, bool onlyCalculate=false |
dim_t | Stellt in Zeichen dar |
| drawCircle | dim_t x, dim_t y, dim_t radius |
void | Zeichnet einen Kreis |
| drawHorLine | dim_t x, dim_t y, dim_t length |
void | Zeichnet eine Horizontale Line |
| drawIcon | dim_t x, dim_t y, IconHeader* icon |
void | |
| drawLine | dim_t x1, dim_t y1, dim_t x2, dim_t y2 |
void | Zeichnet eine Linie |
| drawPixel | dim_t x, dim_t y | void | Zeichnet ein einzelnes Pixel |
| drawRect | const Rect& rect | void | Zeichnet ein Rechteck |
| drawRoundRect | const Rect& rect | void | Zeichnet ein Rechteck mit abgerundeten Ecken |
| drawText | dim_t x, dim_t y, const char* pText, dim_t maxWidth=-1, bool onlyCalculate=false |
uint16_t | Zeichnet Text |
| drawText | const Rect& rect, const char* pText, uint8_t pos=Center|VCenter |
void | |
| drawVertLine | dim_t x, dim_t y, dim_t length |
void | Zeichnet eine vertikale Line |
| fillCircle | dim_t x, dim_t y, dim_t radius |
void | Zeichnet einen ausgefüllten Kreis |
| fillRect | const Rect& rect | void | Zeichnet ein ausgefülltes Rechteck |
| fillRectGradient | const Rect& rect, color_t colorFrom, color_t colorTo, uint8_t direction='v' |
void | |
| fillRoundRect | const Rect& rect | void | Zeichnet ein ausgefülltes Rechteck mit abgerundeten Ecken |
| getFont | PecFont& | ||
| setBackgroundColor | color_t color | void | Setzt die Hintergrundfarbe des Lcd-Displays |
| setBackgroundTransparent | void | Setzt die Hintergrundfarbe des Lcd-Displays auf Transparent | |
| setColor | color_t color | void | Setzt die Farbe des Lcd-Displays |
| setFont | PecFont& font | void | Setzt die Schriftart zum zeichnen von Text |
Abstraktes Interface für ein LCD-Display
| calibration(uint8_t posTodo) uint8_t |
|
| posTodo | wenn 1 links oben, wenn 2 rechts unten |
| clearScreen() void |
|
Löscht den Bildschirm mit der backgroundColor
gDisplay->clearScreen();
| drawChar(dim_t x, dim_t y, unsigned char c, dim_t maxWidth=-1, bool onlyCalculate=false) dim_t |
|
Stellt in Zeichen dar
gDisplay->drawChar(10, 10, 'c' )
| x,y | Koordinate der oberen linken Ecke |
| c | Ascii des Zeichens |
| onlyCalculate | wenn true wird nur die Zeichenbreite berechnet |
| drawCircle(dim_t x, dim_t y, dim_t radius) void |
|
Zeichnet einen Kreis
gDisplay->drawCircle( 10, 10, 100 );
| x | Abstand zum linken Rand des Lcd-Displays |
| y | Abstand zum oberen Rand des Lcd-Displays |
| radius | Radius des Kreises |
| drawHorLine(dim_t x, dim_t y, dim_t length) void |
|
Zeichnet eine Horizontale Line
gDisplay->drawHorLine(10, 10, 100);
| x | Abstand zum linken Rand des Lcd-Displays |
| y | Abstand zum oberen Rand des Lcd-Displays |
| length | Länge der Linie |
| drawIcon(dim_t x, dim_t y, IconHeader* icon) void |
|
| drawLine(dim_t x1, dim_t y1, dim_t x2, dim_t y2) void |
|
Zeichnet eine Linie
gDisplays->drawLine(10, 10, 20, 20);
| x1 | Abstand des Startpunktes zum linken Rand des Lcd-Displays |
| y1 | Abstand des Startpunktes zum oberen Rand des Lcd-Displays |
| x1 | Abstand des Endpunktes zum linken Rand des Lcd-Displays |
| y1 | Abstand des Endpunktes zum oberen Rand des Lcd-Displays |
| drawPixel(dim_t x, dim_t y) void |
|
Zeichnet ein einzelnes Pixel
gDisplay->drawPixel( 10,10 );
| x,y | Koordinaten des Pixels |
| drawRect(const Rect& rect) void |
|
Zeichnet ein Rechteck
rect r( 10, 10, 20, 20 );
gDisplay->drawRect( r );
| rect | Abmaße des Rechtecks als Rect-Objekt |
| drawRoundRect(const Rect& rect) void |
|
Zeichnet ein Rechteck mit abgerundeten Ecken
rect r( 10, 10, 20, 20 );
gDisplay->drawRoundRect( r );
| rect | Abmaße des Rechtecks als Rect-Objekt |
| drawText(dim_t x, dim_t y, const char* pText, dim_t maxWidth=-1, bool onlyCalculate=false) uint16_t |
|
Zeichnet Text
Der Text wird nicht gezeichnet, wenn onlyCalculate = true
gDisplay->drawText( 10, 10, "Text" );
| x | Abstand zum linken Rand des Lcd-Displays |
| y | Abstand zum oberen Rand des Lcd-Displays |
| pText | zu zeichnender Text |
| maxWidth | maximal mögliche Textlänge |
| onlyCalculate | Festlegung, ob Textlänge nur Berechnet wird |
| drawText(const Rect& rect, const char* pText, uint8_t pos=Center|VCenter) void |
|
| drawVertLine(dim_t x, dim_t y, dim_t length) void |
|
Zeichnet eine vertikale Line
gDisplay->drawVertLine(10, 10, 100);
| x | Abstand zum linken Rand des Lcd-Displays |
| y | Abstand zum oberen Rand des Lcd-Displays |
| length | Länge der Linie |
| fillCircle(dim_t x, dim_t y, dim_t radius) void |
|
Zeichnet einen ausgefüllten Kreis
| fillRect(const Rect& rect) void |
|
Zeichnet ein ausgefülltes Rechteck
rect r( 10, 10, 20, 20 );
gDisplay->fillRect( r );
| rect | Abmaße des Rechtecks als Rect-Objekt |
| fillRectGradient(const Rect& rect, color_t colorFrom, color_t colorTo, uint8_t direction='v') void |
|
| fillRoundRect(const Rect& rect) void |
|
Zeichnet ein ausgefülltes Rechteck mit abgerundeten Ecken
rect r( 10, 10, 20, 20 );
gDisplay->fillRoundRect( r );
| rect | Abmaße des Rechtecks als Rect-Objekt |
| getFont() PecFont& |
|
| setBackgroundColor(color_t color) void |
|
Setzt die Hintergrundfarbe des Lcd-Displays
gDisplay->setBackgroundColor( RGB ( 255, 100, 3 ) );
| color | die zu setzende Farbe |
| setBackgroundTransparent() void |
|
Setzt die Hintergrundfarbe des Lcd-Displays auf Transparent
| setColor(color_t color) void |
|
Setzt die Farbe des Lcd-Displays
gDisplay->setColor( RGB ( 255, 100, 3 ) );
| color | die zu setzende Farbe |
| setFont(PecFont& font) void |
|
Setzt die Schriftart zum zeichnen von Text
gDisplay->setFont( fontSmall );
| &font | Pointer auf den zu setzenden Font |
| << Gesamtübersicht | << Klassenübersicht | Details der Klasse | Funktionsbeschreibungen |