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/
Rectangle.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 RECTANGLE_H |
adelino | 1:a74e42cf52b2 | 2 | #define RECTANGLE_H |
adelino | 1:a74e42cf52b2 | 3 | |
adelino | 1:a74e42cf52b2 | 4 | #include "Screen.h" |
adelino | 1:a74e42cf52b2 | 5 | #include "Sprite.h" |
adelino | 1:a74e42cf52b2 | 6 | |
adelino | 1:a74e42cf52b2 | 7 | class Rectangle:public Sprite |
adelino | 1:a74e42cf52b2 | 8 | { |
adelino | 1:a74e42cf52b2 | 9 | public: |
adelino | 1:a74e42cf52b2 | 10 | /** Construct a filled Rectangle |
adelino | 1:a74e42cf52b2 | 11 | * |
adelino | 1:a74e42cf52b2 | 12 | * @param mScreen the pointer screen |
adelino | 1:a74e42cf52b2 | 13 | * @param _id the identifier Id |
adelino | 1:a74e42cf52b2 | 14 | * @params _x the up left |
adelino | 1:a74e42cf52b2 | 15 | * @params _y the up left |
adelino | 1:a74e42cf52b2 | 16 | * @params _w the width |
adelino | 1:a74e42cf52b2 | 17 | * @params _h the height |
adelino | 1:a74e42cf52b2 | 18 | * @param _color the background color |
adelino | 1:a74e42cf52b2 | 19 | * @params _isVisible |
adelino | 1:a74e42cf52b2 | 20 | */ |
adelino | 1:a74e42cf52b2 | 21 | Rectangle(Screen* mScreen,UINT16 _x,UINT16 _y,UINT16 _w,UINT16 _h,Color _color); |
adelino | 1:a74e42cf52b2 | 22 | // |
adelino | 1:a74e42cf52b2 | 23 | virtual void draw(void); |
adelino | 1:a74e42cf52b2 | 24 | // |
adelino | 1:a74e42cf52b2 | 25 | virtual ~Rectangle(void); |
adelino | 1:a74e42cf52b2 | 26 | // |
adelino | 1:a74e42cf52b2 | 27 | //! updating the position of the object, in the case of a game |
adelino | 1:a74e42cf52b2 | 28 | void update(float delta); |
adelino | 1:a74e42cf52b2 | 29 | |
adelino | 1:a74e42cf52b2 | 30 | |
adelino | 1:a74e42cf52b2 | 31 | //setter |
adelino | 1:a74e42cf52b2 | 32 | void setInvisible(bool _state); |
adelino | 1:a74e42cf52b2 | 33 | // |
adelino | 1:a74e42cf52b2 | 34 | void setNewPosition(INT16 _xcnew,INT16 _ycnew); |
adelino | 1:a74e42cf52b2 | 35 | // |
adelino | 1:a74e42cf52b2 | 36 | void setNewPosition(INT16 _xcnew,INT16 _ycnew,bool isScreenLimits); |
adelino | 1:a74e42cf52b2 | 37 | |
adelino | 1:a74e42cf52b2 | 38 | }; |
adelino | 1:a74e42cf52b2 | 39 | |
adelino | 1:a74e42cf52b2 | 40 | |
adelino | 1:a74e42cf52b2 | 41 | #endif |