pmc/include/rectangle.h
changeset 42 83b8151b966d
child 43 cf8c1b5127b2
equal deleted inserted replaced
41:574503cf7bb0 42:83b8151b966d
       
     1 /**
       
     2  * test/demos/pmc/include/rectangle.h
       
     3  * Copyright (C) 2008 Markus Broeker
       
     4  */
       
     5 
       
     6 #ifndef RECTANGLE_H
       
     7 #define RECTANGLE_H
       
     8 
       
     9 #include <surface.h>
       
    10 #include <vector.h>
       
    11 #include <drawable.h>
       
    12 
       
    13 class Rectangle:public Drawable {
       
    14   private:
       
    15     Vector * P[4];
       
    16 
       
    17   public:
       
    18     Rectangle (Surface *, Vector p1, Vector p2, Vector p3, Vector p4);
       
    19     Rectangle (Surface *);
       
    20     virtual ~ Rectangle ();
       
    21     void move (Vector);
       
    22     void show ();
       
    23 };
       
    24 #endif