Library for 3.2'' uLcd Picaso Display4D system Picaso Serial Environment Command Set web: http://www.4dsystems.com.au/product/20/67/Processors_Graphics/PICASO/
Diff: GraphicLed.h
- Revision:
- 1:a74e42cf52b2
diff -r 65fd8b1cbf86 -r a74e42cf52b2 GraphicLed.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/GraphicLed.h Sun Apr 05 13:54:48 2015 +0000 @@ -0,0 +1,41 @@ +#ifndef GRAPHIC_LED_H +#define GRAPHIC_LED_H + +#include "Screen.h" + +class GraphicLed:public Widget +{ +public: + /** Construct a filled Circle + * + * @param mScreen the pointer screen + * @params _xc center + * @params _yc center + * @params _radius + * @params _colorOn + * @params _colorOff + * @params _state LED_STATE_ON or LED_STATE_OFF, + */ + + GraphicLed(Screen* mScreen,UINT16 _xc,UINT16 _yc,UINT16 _radius, + Color _colorOn,Color _colorOff,State _state); + // + virtual void draw(void); + // + virtual ~GraphicLed(void); + + +//setter + void setInvisible(bool _state); + // + void setState(State _state); + +protected: + Color myColorOn; + Color myColorOff; + UINT16 myRadius; + UINT16 myCenterX; + UINT16 myCenterY; +}; + +#endif \ No newline at end of file