Very Simple Graphic Library
 Tutto Classi File Funzioni Variabili Pagine
oggettografico.h
1 #ifndef OGGETTOGRAFICO_H
2 #define OGGETTOGRAFICO_H
3 
4 #include "quickcg.h"
5 
6 using namespace QuickCG;
7 
8 #include "vsgl_types.h"
9 
11 {
12  public:
13  OggettoGrafico(int nx, int ny, const Colore& col):
14  x(nx),y(ny),c(col),nascosto(false){}
15  virtual ~OggettoGrafico(){}
16  virtual void disegna() const = 0;
17  virtual void muovi(int nx, int ny);
18  void nascondi();
19  void mostra();
20  void cambiaColore(const Colore& col);
21  protected:
22  int x;
23  int y;
24  Colore c;
25  bool nascosto;
26  private:
27 };
28 
29 #endif // OGGETTOGRAFICO_H
Definition: oggettografico.h:10
Definition: quickcg.h:107