Fork of LCD-Window which works with Enhanced TextLCD from Wim
Fork of LcdWindow by
Diff: terminal.h
- Revision:
- 2:5ac5bab7daaf
- Parent:
- 1:65f72ed914fa
- Child:
- 13:99b500b05716
--- a/terminal.h Tue Nov 16 20:49:18 2010 +0000
+++ b/terminal.h Sat Nov 27 22:54:13 2010 +0000
@@ -41,19 +41,22 @@
* works like the normal writeText method,
* but also stores the written text into the internal buffer (which makes it subject to scrolling)
*/
- virtual void writeText(const unsigned int line, const unsigned int pos, const char text[]);
+ virtual void writeText(const unsigned int column, const unsigned int row, const char text[]);
/**
* write the given text into the last line (at the first position)
* @param text the text to write
*/
virtual void addText(const char text[]);
- virtual int getHeight(){return _height;};
- virtual int getWidth(){return _width;};
+ virtual int getColumns(){return _columns;};
+ virtual int getRows(){return _rows;};
virtual void clear();
+ virtual void character(int column, int row, int c);
+
private:
Window* _window;
- char** _lines;
- int _height, _width;
+ char** _lineBuffer;
+ unsigned int _columns;
+ unsigned int _rows;
char* createLine();
};
