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: Abstracts/Control.h
- Revision:
- 2:bbfc18022ee5
- Parent:
- 1:f7003ec66a51
--- a/Abstracts/Control.h Fri Mar 14 19:17:44 2014 +0000 +++ b/Abstracts/Control.h Tue May 27 20:05:29 2014 +0000 @@ -36,9 +36,9 @@ Control(int x, int y, int w, int h); /** Paint the control on the specified canvas and mark as valid again - * - * @param canvas Pointer to the canvas to paint on. - */ + * + * @param canvas Pointer to the canvas to paint on. + */ virtual void paint(Canvas *canvas); /** Get the X coordinate of the control @@ -48,9 +48,9 @@ int posX(); /** Set the X coordinate of the control - * - * @param x The new X coordinate for the control. - */ + * + * @param x The new X coordinate for the control. + */ void posX(int x); /** Get the Y coordinate of the control @@ -60,9 +60,9 @@ int posY(); /** Set the Y coordinate of the control - * - * @param y The new Y coordinate for the control. - */ + * + * @param y The new Y coordinate for the control. + */ void posY(int y); /** Get the width of the control @@ -72,9 +72,9 @@ int width(); /** Set the width of the control - * - * @param w The new width for the control. - */ + * + * @param w The new width for the control. + */ void width(int w); /** Get the height of the control @@ -84,9 +84,9 @@ int height(); /** Set the height of the control - * - * @param h The new height for the control. - */ + * + * @param h The new height for the control. + */ void height(int h); /** Get the current margin width @@ -96,9 +96,9 @@ int margin(); /** Set the margin width - * - * @param m The new margin width. - */ + * + * @param m The new margin width. + */ void margin(int m); /** Get the current border width @@ -108,9 +108,9 @@ int border(); /** Set the border width - * - * @param b The new border width. - */ + * + * @param b The new border width. + */ void border(int b); /** Get the current padding width @@ -120,9 +120,9 @@ int padding(); /** Set the padding width - * - * @param p The new padding width. - */ + * + * @param p The new padding width. + */ void padding(int p); /** Get the X coordinate of the control's content area @@ -150,27 +150,27 @@ int contentHeight(); /** Get the foreground color - * - * @returns The foreground color as a 32-bit ARGB value. - */ + * + * @returns The foreground color as a 32-bit ARGB value. + */ unsigned int foreColor(); /** Set the foreground color - * - * @param c The new foreground color as a 32-bit ARGB value. - */ + * + * @param c The new foreground color as a 32-bit ARGB value. + */ void foreColor(unsigned int c); /** Get the background color - * - * @returns The background color as a 32-bit ARGB value. - */ + * + * @returns The background color as a 32-bit ARGB value. + */ unsigned int backColor(); /** Set the background color - * - * @param c The new background color as a 32-bit ARGB value. - */ + * + * @param c The new background color as a 32-bit ARGB value. + */ void backColor(unsigned int c); /** Get the current text of the control @@ -180,9 +180,9 @@ const char* text(); /** Set the text of the control - * - * @param text The new text. - */ + * + * @param text The new text. + */ void text(const char* text); /** Get the current font of the control @@ -192,9 +192,9 @@ Font* font(); /** Set the font of the control - * - * @param fnt The new font. - */ + * + * @param fnt The new font. + */ void font(Font* fnt); /** Determine whether the control needs to be repainted