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.

Revision:
1:f7003ec66a51
Parent:
0:b876cf091464
--- a/Decoders/Font.h	Fri Aug 30 17:09:18 2013 +0000
+++ b/Decoders/Font.h	Fri Mar 14 19:17:44 2014 +0000
@@ -30,14 +30,14 @@
      *
      * @param table Pointer to the font table.
      */
-    Font(const char *table);
+    Font(const char* table);
 
     /** Create a Font object with the specified color
      *
      * @param table Pointer to the font table.
      * @param color Color for the font as a 32-bit ARGB value.
      */
-    Font(const char *table, unsigned int color);
+    Font(const char* table, unsigned int color);
 
     /** Get the glyph Image for the specified character
      *
@@ -49,7 +49,7 @@
      *
      * @returns The current Font color as a 32-bit ARGB value.
      */
-    unsigned int color(void);
+    unsigned int color();
 
     /** Set the Font color
      *
@@ -61,7 +61,7 @@
      *
      * @returns The height of the Font glyphs.
      */
-    int height(void);
+    int height();
 
     /** Measures the width of a string in pixels if drawn with this font
      *
@@ -69,7 +69,7 @@
      *
      * @returns The width of the string in pixels.
      */
-    int measureString(const char *str);
+    int measureString(const char* str);
 
     /** Measures the width of the next word in a string (separated by whitespace) in pixels if drawn with this font
      *
@@ -77,10 +77,10 @@
      *
      * @returns The width of the next word in pixels.
      */
-    int measureWord(const char *str);
+    int measureWord(const char* str);
 
 protected:
-    const char *m_FontTable;
+    const char* m_FontTable;
     unsigned int m_Color;
 };