Dependents:   Objet Telecommande_prologue

Rectangle.h

Committer:
projetremote
Date:
2011-05-03
Revision:
0:19fca77774b6

File content as of revision 0:19fca77774b6:

#include "mbed.h"

class Rectangle {
protected :
    int Origin[1];
    int End[1];
    int * back;


public :
    Rectangle(int x,int y, int x2, int y2, int color, int * back);

    bool is_touch(int x_touch, int y_touch);

    bool deplace(int x, int y);
    
    int getX1();
    
    int getX2();
    
    int getY1();
    
    int getY2();
    
    int * getBack();
};