00001 #ifndef HEADER_WIPICTURE_H 00002 #define HEADER_WIPICTURE_H 00003 00004 class Path; 00005 00006 #include "IWidget.h" 00007 00008 /** 00009 * Picture widget. 00010 */ 00011 class WiPicture : public IWidget { 00012 protected: 00013 SDL_Surface *m_surface; 00014 protected: 00015 WiPicture(SDL_Surface *new_surface) { m_surface = new_surface; } 00016 public: 00017 WiPicture(const Path &picture); 00018 virtual ~WiPicture(); 00019 virtual int getW() const { return m_surface->w; } 00020 virtual int getH() const { return m_surface->h; } 00021 00022 virtual void drawOn(SDL_Surface *screen); 00023 }; 00024 00025 #endif