A simple yet powerful library for controlling graphical displays. Multiple display controllers are supported using inheritance.
Dependents: mbed_rifletool Hexi_Bubble_Game Hexi_Catch-the-dot_Game Hexi_Acceleromagnetic_Synth
NOTE: This library is in beta right now. As far as I know, everything here works, but there are many features that are lacking so far. Most notably containers, button handling, and display drivers other than the SSD1306.
Diff: Decoders/Font.cpp
- Revision:
- 1:f7003ec66a51
- Parent:
- 0:b876cf091464
diff -r b876cf091464 -r f7003ec66a51 Decoders/Font.cpp --- a/Decoders/Font.cpp Fri Aug 30 17:09:18 2013 +0000 +++ b/Decoders/Font.cpp Fri Mar 14 19:17:44 2014 +0000 @@ -16,13 +16,13 @@ #include "Font.h" -Font::Font(const char *table) +Font::Font(const char* table) { m_FontTable = table; m_Color = 0xFFFFFFFF; } -Font::Font(const char *table, unsigned int color) +Font::Font(const char* table, unsigned int color) { m_FontTable = table; m_Color = color; @@ -48,7 +48,7 @@ } } -unsigned int Font::color(void) +unsigned int Font::color() { return m_Color; } @@ -58,12 +58,12 @@ m_Color = c; } -int Font::height(void) +int Font::height() { return m_FontTable[1]; } -int Font::measureString(const char *str) +int Font::measureString(const char* str) { int i = 0; int slen = 0; @@ -77,7 +77,7 @@ return slen; } -int Font::measureWord(const char *str) +int Font::measureWord(const char* str) { int i = 0; int wlen = 0;