Fork of LCD-Window which works with Enhanced TextLCD from Wim
Fork of LcdWindow by
TextLCDAdapter Class Reference
adapter class to wrap a TextLCD instance as Window More...
#include <textlcdadapter.h>
Inherits Window.
Public Member Functions | |
| virtual void | clear () |
| clears the window | |
| virtual void | writeText (const unsigned int column, const unsigned int row, const char text[]) |
| write text into the window, at the given position. | |
| virtual int | getRows () |
| virtual int | getColumns () |
| virtual void | character (int column, int row, int c) |
| writes a character to the specified position must be public because it is used during delegation | |
| int | putc (int c) |
| Write a character to the LCD, on the position specified by the cursor sets the cursor to the next position, and wraps (from right to left, next line, and from bottom back to top) | |
| int | printf (const char *format,...) |
| Write a formated string to the LCD, on the position specified by the cursor does wrap around (as specified by putc) | |
| virtual void | locate (int column, int row) |
| set (internal) cursor to a screen column and row | |
Detailed Description
adapter class to wrap a TextLCD instance as Window
Definition at line 32 of file textlcdadapter.h.
Member Function Documentation
| void character | ( | int | column, |
| int | row, | ||
| int | c | ||
| ) | [virtual] |
writes a character to the specified position must be public because it is used during delegation
- Parameters:
-
column The horizontal position from the left, indexed from 0 row The vertical position from the top, indexed from 0 c the character
Implements Window.
Definition at line 50 of file textlcdadapter.cpp.
| void clear | ( | ) | [virtual] |
| virtual int getColumns | ( | ) | [virtual] |
- Parameters:
-
returns the width of the window
Implements Window.
Definition at line 40 of file textlcdadapter.h.
| virtual int getRows | ( | ) | [virtual] |
- Parameters:
-
returns the height of the window
Implements Window.
Definition at line 39 of file textlcdadapter.h.
| void locate | ( | int | column, |
| int | row | ||
| ) | [virtual, inherited] |
set (internal) cursor to a screen column and row
- Parameters:
-
column The horizontal position from the left, indexed from 0 row The vertical position from the top, indexed from 0
Definition at line 26 of file window.cpp.
| int printf | ( | const char * | format, |
| ... | |||
| ) |
Write a formated string to the LCD, on the position specified by the cursor does wrap around (as specified by putc)
- Parameters:
-
format A printf-style format string, followed by the variables to use in formating the string.
Reimplemented from Window.
Definition at line 61 of file textlcdadapter.cpp.
| int putc | ( | int | c ) |
Write a character to the LCD, on the position specified by the cursor sets the cursor to the next position, and wraps (from right to left, next line, and from bottom back to top)
- Parameters:
-
c The character to write to the display
Reimplemented from Window.
Definition at line 58 of file textlcdadapter.cpp.
| void writeText | ( | const unsigned int | column, |
| const unsigned int | row, | ||
| const char | text[] | ||
| ) | [virtual] |
write text into the window, at the given position.
this doesn't change the internal cursor position Implementations should check for the length of the text and shorten it accordingly. columns the column where to write row the line where to write text the text to write
Implements Window.
Definition at line 37 of file textlcdadapter.cpp.
Generated on Tue Jul 12 2022 20:32:52 by
1.7.2
