Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
.
[graphlib.git] / DrawingAreaInterface.h
1 #ifndef DRAWING_AREA_INTERFACE_H
2 #define DRAWING_AREA_INTERFACE_H
3
4 class DrawingAreaInterface {
5 public:
6     static const int DEFAULT_WIDTH = 640;
7     static const int DEFAULT_HEIGHT = 480;
8
9     virtual ~DrawingAreaInterface() { }
10
11     virtual void setColor(float red, float green, float blue) = 0;
12     virtual void drawPoint(int x, int y) = 0;
13     virtual void drawLine(int x1, int y1, int x2, int y2) = 0;
14     
15     virtual void wait() = 0;
16     virtual void waitAll() = 0;
17 };
18
19 #endif // !DRAWING_AREA_INTERFACE_H