Codebase list pipenightdreams / 2b9317f7-48f3-4863-92a7-71d4f66d0c37/main src / canvas.h
2b9317f7-48f3-4863-92a7-71d4f66d0c37/main

Tree @2b9317f7-48f3-4863-92a7-71d4f66d0c37/main (Download .tar.gz)

canvas.h @2b9317f7-48f3-4863-92a7-71d4f66d0c37/mainraw · history · blame

/***************************************************************************
                          canvas.h  -  description
                             -------------------
    begin                : Fri Sep 1 2000
    copyright            : (C) 2000 by Waldemar Baraldi
    email                : baraldi@lacasilla.com.ar
 ***************************************************************************/

/***************************************************************************
 *                                                                         *
 *   This program is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU General Public License as published by  *
 *   the Free Software Foundation; either version 2 of the License, or     *
 *   (at your option) any later version.                                   *
 *                                                                         *
 ***************************************************************************/

#ifndef CANVAS_H
#define CANVAS_H

#include "graphic.h"
#include "videomanager.h"

/** Clase abstracta para el manejo de objetos gráficos.*/

class Canvas: public Graphic{

  public:

    /** Constructor.*/
    Canvas();

    Canvas(int width, int height);

    /** Destructor.*/
    virtual ~Canvas(){};

    /** Setea la posición.*/
    virtual void setPos(int x, int y);

    virtual int getX();

    virtual int getY();

    /** Pinta el canvas.*/
    virtual void paint(VideoManager * vm)=0;

  protected:

    int x, y;
};

#endif