Debian Codegraph @

src/widget/WiPicture.h

raw
1 #ifndef HEADER_WIPICTURE_H
2 #define HEADER_WIPICTURE_H
3
4 class Path;
5
6 #include "IWidget.h"
7
8 /**
9 * Picture widget.
10 */
11 class WiPicture : public IWidget {
12 protected:
13 SDL_Surface *m_surface;
14 protected:
15 WiPicture(SDL_Surface *new_surface) { m_surface = new_surface; }
16 public:
17 WiPicture(const Path &picture);
18 virtual ~WiPicture();
19 virtual int getW() const { return m_surface->w; }
20 virtual int getH() const { return m_surface->h; }
21
22 virtual void drawOn(SDL_Surface *screen);
23 };
24
25 #endif