Fork of LCD-Window which works with Enhanced TextLCD from Wim
Fork of LcdWindow by
TeeWindow Class Reference
A window class duplicating all writes into all given parent windows (like the Unix 'tee' command). More...
#include <teewindow.h>
Inherits Window.
Public Member Functions | |
| TeeWindow (vector< Window * > lcds) | |
| virtual void | writeText (const unsigned int column, const unsigned int row, const char text[]) |
| writes the text to all parent windows | |
| virtual int | getColumns () |
| virtual int | getRows () |
| virtual void | clear () |
| clears all parent windows | |
| 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 | |
| virtual void | locate (int column, int row) |
| set (internal) cursor to a screen column and row | |
| 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) | |
Detailed Description
A window class duplicating all writes into all given parent windows (like the Unix 'tee' command).
It is assumed that all given windows are of the same size.
Definition at line 36 of file teewindow.h.
Constructor & Destructor Documentation
- Parameters:
-
lcds the vector of windows to write into
Definition at line 26 of file teewindow.cpp.
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 33 of file teewindow.cpp.
| void clear | ( | ) | [virtual] |
| virtual int getColumns | ( | ) | [virtual] |
- Parameters:
-
returns the width of the window
Implements Window.
Definition at line 47 of file teewindow.h.
| virtual int getRows | ( | ) | [virtual] |
- Parameters:
-
returns the height of the window
Implements Window.
Definition at line 48 of file teewindow.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, |
| ... | |||
| ) | [inherited] |
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 in TextLCDAdapter.
| int putc | ( | int | c ) | [inherited] |
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 in TextLCDAdapter.
| void writeText | ( | const unsigned int | column, |
| const unsigned int | row, | ||
| const char | text[] | ||
| ) | [virtual] |
writes the text to all parent windows
Implements Window.
Definition at line 41 of file teewindow.cpp.
Generated on Tue Jul 12 2022 20:32:52 by
1.7.2
