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/

Committer:
adelino
Date:
Sun Apr 05 13:54:48 2015 +0000
Revision:
1:a74e42cf52b2
PicasoLib version 2

Who changed what in which revision?

UserRevisionLine numberNew contents of line
adelino 1:a74e42cf52b2 1 #ifndef GRAPHIC_LED_H
adelino 1:a74e42cf52b2 2 #define GRAPHIC_LED_H
adelino 1:a74e42cf52b2 3
adelino 1:a74e42cf52b2 4 #include "Screen.h"
adelino 1:a74e42cf52b2 5
adelino 1:a74e42cf52b2 6 class GraphicLed:public Widget
adelino 1:a74e42cf52b2 7 {
adelino 1:a74e42cf52b2 8 public:
adelino 1:a74e42cf52b2 9 /** Construct a filled Circle
adelino 1:a74e42cf52b2 10 *
adelino 1:a74e42cf52b2 11 * @param mScreen the pointer screen
adelino 1:a74e42cf52b2 12 * @params _xc center
adelino 1:a74e42cf52b2 13 * @params _yc center
adelino 1:a74e42cf52b2 14 * @params _radius
adelino 1:a74e42cf52b2 15 * @params _colorOn
adelino 1:a74e42cf52b2 16 * @params _colorOff
adelino 1:a74e42cf52b2 17 * @params _state LED_STATE_ON or LED_STATE_OFF,
adelino 1:a74e42cf52b2 18 */
adelino 1:a74e42cf52b2 19
adelino 1:a74e42cf52b2 20 GraphicLed(Screen* mScreen,UINT16 _xc,UINT16 _yc,UINT16 _radius,
adelino 1:a74e42cf52b2 21 Color _colorOn,Color _colorOff,State _state);
adelino 1:a74e42cf52b2 22 //
adelino 1:a74e42cf52b2 23 virtual void draw(void);
adelino 1:a74e42cf52b2 24 //
adelino 1:a74e42cf52b2 25 virtual ~GraphicLed(void);
adelino 1:a74e42cf52b2 26
adelino 1:a74e42cf52b2 27
adelino 1:a74e42cf52b2 28 //setter
adelino 1:a74e42cf52b2 29 void setInvisible(bool _state);
adelino 1:a74e42cf52b2 30 //
adelino 1:a74e42cf52b2 31 void setState(State _state);
adelino 1:a74e42cf52b2 32
adelino 1:a74e42cf52b2 33 protected:
adelino 1:a74e42cf52b2 34 Color myColorOn;
adelino 1:a74e42cf52b2 35 Color myColorOff;
adelino 1:a74e42cf52b2 36 UINT16 myRadius;
adelino 1:a74e42cf52b2 37 UINT16 myCenterX;
adelino 1:a74e42cf52b2 38 UINT16 myCenterY;
adelino 1:a74e42cf52b2 39 };
adelino 1:a74e42cf52b2 40
adelino 1:a74e42cf52b2 41 #endif