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:
- 1:f7003ec66a51
- Parent:
- 0:b876cf091464
- Child:
- 2:bbfc18022ee5
diff -r b876cf091464 -r f7003ec66a51 Abstracts/Control.h --- a/Abstracts/Control.h Fri Aug 30 17:09:18 2013 +0000 +++ b/Abstracts/Control.h Fri Mar 14 19:17:44 2014 +0000 @@ -45,7 +45,7 @@ * * @returns The X coordinate of the control. */ - int posX(void); + int posX(); /** Set the X coordinate of the control * @@ -57,7 +57,7 @@ * * @returns The Y coordinate of the control. */ - int posY(void); + int posY(); /** Set the Y coordinate of the control * @@ -69,7 +69,7 @@ * * @returns The width of the control. */ - int width(void); + int width(); /** Set the width of the control * @@ -81,7 +81,7 @@ * * @returns The height of the control. */ - int height(void); + int height(); /** Set the height of the control * @@ -93,7 +93,7 @@ * * @returns The current margin width. */ - int margin(void); + int margin(); /** Set the margin width * @@ -105,7 +105,7 @@ * * @returns The current border width. */ - int border(void); + int border(); /** Set the border width * @@ -117,7 +117,7 @@ * * @returns The current padding width. */ - int padding(void); + int padding(); /** Set the padding width * @@ -129,31 +129,31 @@ * * @returns The X coordinate of the control's content area. */ - int contentPosX(void); + int contentPosX(); /** Get the Y coordinate of the control's content area * * @returns The Y coordinate of the control's content area. */ - int contentPosY(void); + int contentPosY(); /** Get the width of the control's content area * * @returns The width of the control's content area. */ - int contentWidth(void); + int contentWidth(); /** Get the height of the control's content area * * @returns The height of the control's content area. */ - int contentHeight(void); + int contentHeight(); /** Get the foreground color * * @returns The foreground color as a 32-bit ARGB value. */ - unsigned int foreColor(void); + unsigned int foreColor(); /** Set the foreground color * @@ -165,7 +165,7 @@ * * @returns The background color as a 32-bit ARGB value. */ - unsigned int backColor(void); + unsigned int backColor(); /** Set the background color * @@ -177,41 +177,41 @@ * * @returns The current text of the control. */ - const char *text(void); + const char* text(); /** Set the text of the control * * @param text The new text. */ - void text(const char *text); + void text(const char* text); /** Get the current font of the control * * @returns The current font of the control. */ - Font *font(void); + Font* font(); /** Set the font of the control * * @param fnt The new font. */ - void font(Font *fnt); + void font(Font* fnt); /** Determine whether the control needs to be repainted * * @returns Whether or not the control needs to be repainted. */ - bool invalid(void); + bool invalid(); /** Mark this control as invalid */ - void invalidate(void); + void invalidate(); protected: int m_X, m_Y, m_Width, m_Height, m_Margin, m_Border, m_Padding; unsigned int m_FgColor, m_BgColor; - const char *m_Text; - Font *m_Font; + const char* m_Text; + Font* m_Font; bool m_Invalid; };