+−/** +− * 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