simple GUI elements for drawing on a canvas, works with adafruit graphics lib
SmallGUIBase.h
- Committer:
- JojoS
- Date:
- 2017-04-24
- Revision:
- 0:ccdf1edcbba6
File content as of revision 0:ccdf1edcbba6:
#ifndef _SMALLGUI_BASE_H_ #define _SMALLGUI_BASE_H_ #include "mbed.h" #include "SmallGUI_config.h" class baseControl { public: baseControl() {}; virtual void draw(Adafruit_GFX &_gfxDevice) {}; }; class Canvas { public: Canvas(Adafruit_GFX &_gfxDevice); void draw(); void addControl(baseControl &ctrl); private: Adafruit_GFX &gfxDevice; int ctrlCount; baseControl *ctrlList[MAX_CONTROLS_PER_CANVAS]; }; #endif