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

Committer:
adelino
Date:
2015-04-05
Revision:
1:a74e42cf52b2

File content as of revision 1:a74e42cf52b2:

#ifndef RECTANGLE_H
#define RECTANGLE_H

#include "Screen.h"
#include "Sprite.h"

class Rectangle:public Sprite
{
public:
    /** Construct a filled Rectangle
    *
    * @param mScreen the pointer screen
    * @param _id the identifier Id
    * @params _x the up left
    * @params _y the up left
    * @params _w the width
    * @params _h the height
    * @param _color the background color
    * @params _isVisible
    */
    Rectangle(Screen* mScreen,UINT16 _x,UINT16 _y,UINT16 _w,UINT16 _h,Color _color);
    //
    virtual void draw(void);
    //
    virtual ~Rectangle(void);
    //
    //! updating the position of the object, in the case of a game
    void update(float delta);


//setter
    void setInvisible(bool _state);
    //
    void setNewPosition(INT16 _xcnew,INT16 _ycnew);
    //
    void setNewPosition(INT16 _xcnew,INT16 _ycnew,bool isScreenLimits);

};
   

#endif