pmc/include/rectangle.h
author Emilio Largo <largo@largo.homelinux.org>
Thu, 16 Apr 2009 12:49:12 +0200
changeset 45 7197576fedcf
parent 43 cf8c1b5127b2
child 54 c064ce9f40f5
permissions -rw-r--r--
pmc: namespace algebra for vector -> the namespace prevents clashes with std::vector -> std::vector and algebra::Vector with capital V. md5: a md5 replacement ncurses: keypad function added committer: Markus Bröker <mbroeker@largo.homelinux.org>

/**
 * 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:
    algebra::Vector * P[4];

  public:
    Rectangle (Surface *, algebra::Vector & p1, algebra::Vector & p2, algebra::Vector & p3, algebra::Vector & p4);
    Rectangle (Surface *, algebra::Vector[4]);
    Rectangle (Surface *);
    virtual ~ Rectangle ();
    void move (algebra::Vector);
    void show ();
};
#endif