Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
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;