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: Segment.h
- Revision:
- 1:a74e42cf52b2
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Segment.h Sun Apr 05 13:54:48 2015 +0000 @@ -0,0 +1,37 @@ +#ifndef SEGMENT_H +#define SEGMENT_H + +#include "Screen.h" + +class Segment: public Widget +{ +public: + /** Construct a Segment + * + * @param mScreen the pointer screen + * @param _id the identifier Id + * @params _x1 first point + * @params _y1 + * @params _x2 second point + * @params _y2 + * @params _color + * @params _isVisible + */ + Segment(Screen* mScreen,UINT16 _x1,UINT16 _y1,UINT16 _x2,UINT16 _y2,Color _color); + // + virtual void draw(void); + // + virtual ~Segment(void); + // + void setInvisible(bool _state); + // + void setNewCoord(UINT16 _x1,UINT16 _y1,UINT16 _x2,UINT16 _y2); + +protected: +UINT16 myX1; +UINT16 myY1; +UINT16 myX2; +UINT16 myY2; +}; + +#endif \ No newline at end of file