pmc/include/rectangle.h
changeset 42 83b8151b966d
child 43 cf8c1b5127b2
new file mode 100644
--- /dev/null
+++ b/pmc/include/rectangle.h
@@ -0,0 +1,24 @@
+/**
+ * test/demos/pmc/include/rectangle.h
+ * Copyright (C) 2008 Markus Broeker
+ */
+
+#ifndef RECTANGLE_H
+#define RECTANGLE_H
+
+#include <surface.h>
+#include <vector.h>
+#include <drawable.h>
+
+class Rectangle:public Drawable {
+  private:
+    Vector * P[4];
+
+  public:
+    Rectangle (Surface *, Vector p1, Vector p2, Vector p3, Vector p4);
+    Rectangle (Surface *);
+    virtual ~ Rectangle ();
+    void move (Vector);
+    void show ();
+};
+#endif