Forked para SNOCC
Fork of RA8875 by
Diff: TextDisplay.h
- Revision:
- 29:422616aa04bd
- Parent:
- 19:3f82c1161fd2
- Child:
- 31:c72e12cd5c67
diff -r ed102fc442c4 -r 422616aa04bd TextDisplay.h --- a/TextDisplay.h Fri Jan 17 17:24:05 2014 +0000 +++ b/TextDisplay.h Sun Jan 19 04:24:16 2014 +0000 @@ -40,11 +40,12 @@ /** output a character at the given position * - * @param column column where charater must be written - * @param row where character must be written + * @param x position in pixels + * @param y position in pixels * @param c the character to be written to the TextDisplay + * @returns number of pixels to advance the cursor. */ - virtual void character(int column, int row, int c) = 0; + virtual int character(int x, int y, int c) = 0; /** return number if rows on TextDisplay * @result number of rows @@ -65,7 +66,7 @@ /** clear screen */ - virtual RetCode_t cls(); + virtual RetCode_t cls() = 0; virtual RetCode_t locate(unsigned int column, unsigned int row) = 0; virtual RetCode_t foreground(uint16_t colour) = 0; virtual RetCode_t background(uint16_t colour) = 0;