00001 #ifndef GRAPHICALOBJECT_H 00002 #define GRAPHICALOBJECT_H 00003 00004 #include "GUI.h" 00005 00009 class GraphicalObject{ 00010 public: 00011 GraphicalObject(Color outlineColor = GUI::colorBlack, Color fillColor = GUI::colorTransparent); 00012 00014 virtual ~GraphicalObject(); 00015 00017 virtual void draw(GUI *gui) = 0; 00018 00020 virtual void setOutlineColor(Color color) { outlineColor=color; } 00021 00023 virtual void setFillColor(Color color) { fillColor=color; } 00024 00026 void setColor(Color color){ 00027 setOutlineColor(color); 00028 setFillColor(color); 00029 } 00030 00032 Color outlineColor; 00033 00035 Color fillColor; 00036 }; 00037 00038 #endif //GRAPHICALOBJECT_H
Thyrix homepage Users' guide
(C) Arxia 2004-2005