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/
Label.h@1:a74e42cf52b2, 2015-04-05 (annotated)
- Committer:
- adelino
- Date:
- Sun Apr 05 13:54:48 2015 +0000
- Revision:
- 1:a74e42cf52b2
PicasoLib version 2
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
adelino | 1:a74e42cf52b2 | 1 | #ifndef LABEL_H |
adelino | 1:a74e42cf52b2 | 2 | #define LABEL_H |
adelino | 1:a74e42cf52b2 | 3 | |
adelino | 1:a74e42cf52b2 | 4 | #include "Screen.h" |
adelino | 1:a74e42cf52b2 | 5 | |
adelino | 1:a74e42cf52b2 | 6 | class Label:public Widget |
adelino | 1:a74e42cf52b2 | 7 | { |
adelino | 1:a74e42cf52b2 | 8 | public: |
adelino | 1:a74e42cf52b2 | 9 | /** Construct a label |
adelino | 1:a74e42cf52b2 | 10 | * |
adelino | 1:a74e42cf52b2 | 11 | * @param mScreen the pointer screen |
adelino | 1:a74e42cf52b2 | 12 | * @params _x |
adelino | 1:a74e42cf52b2 | 13 | * @params _y |
adelino | 1:a74e42cf52b2 | 14 | * @params _text |
adelino | 1:a74e42cf52b2 | 15 | * @params _font |
adelino | 1:a74e42cf52b2 | 16 | * @params _colorText |
adelino | 1:a74e42cf52b2 | 17 | * @params _colorBkg |
adelino | 1:a74e42cf52b2 | 18 | */ |
adelino | 1:a74e42cf52b2 | 19 | |
adelino | 1:a74e42cf52b2 | 20 | Label(Screen* mScreen,UINT16 _x,UINT16 _y, |
adelino | 1:a74e42cf52b2 | 21 | string _text,Font _font,Color _colorText,Color _colorBkg); |
adelino | 1:a74e42cf52b2 | 22 | |
adelino | 1:a74e42cf52b2 | 23 | // |
adelino | 1:a74e42cf52b2 | 24 | virtual void draw(void); |
adelino | 1:a74e42cf52b2 | 25 | // |
adelino | 1:a74e42cf52b2 | 26 | virtual ~Label(void); |
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 setNewText(string _newText); |
adelino | 1:a74e42cf52b2 | 32 | |
adelino | 1:a74e42cf52b2 | 33 | protected: |
adelino | 1:a74e42cf52b2 | 34 | string myText; |
adelino | 1:a74e42cf52b2 | 35 | Font myFont; |
adelino | 1:a74e42cf52b2 | 36 | Color myColorText; |
adelino | 1:a74e42cf52b2 | 37 | |
adelino | 1:a74e42cf52b2 | 38 | }; |
adelino | 1:a74e42cf52b2 | 39 | |
adelino | 1:a74e42cf52b2 | 40 | #endif |