00001 #ifndef _PANEL_ 00002 #define _PANEL_ 00003 00004 #include <SDL.h> 00005 #include <SDL_ttf.h> 00006 00013 class Panel{ 00014 public: 00020 Panel(); 00021 00036 Panel(const unsigned int x, const unsigned int y, 00037 const unsigned int w, const unsigned int h); 00038 00043 virtual ~Panel(); 00044 00048 Panel& operator=(Panel const& other); 00049 00056 virtual bool draw(SDL_Surface* screen); 00057 00062 SDL_Rect* getDim(); 00063 00064 virtual void setFont(TTF_Font* font); 00065 00066 protected: 00072 SDL_Rect dim; 00073 00078 SDL_Surface* surface; 00079 00085 TTF_Font* font; 00086 }; 00087 00088 00089 #endif