Joshua Newth / Mbed 2 deprecated POV01

Dependencies:   mbed

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers FontPack.h Source File

FontPack.h

00001 namespace FontPack {
00002 
00003 
00004 typedef struct {
00005     int nCols;
00006     const char* col;
00007     char getCol(int i) {
00008         return col[i];
00009     }
00010 } FontPackChar;
00011 
00012 
00013 
00014 
00015 /*
00016 FN: writeChar
00017 Function takes the char to write to the map, the map to write to,
00018 and where in the map to start the writing.
00019 RETURN: index in map after inserting char (the caret)
00020 */
00021 int writeChar(char a, char map[], int index, int col = 0);
00022 /*FN: blank
00023 Inserts a blank.
00024 RETURN: index in map after inserting blank
00025 */
00026 int blank(int index);
00027 
00028 /*
00029 FN: getChar
00030 RETURN: a struct encapsulating the requested char.
00031 */
00032 FontPackChar getChar(char a);
00033 }