src/widget/WiSpace.h
raw| 1 | #ifndef HEADER_WISPACE_H |
| 2 | #define HEADER_WISPACE_H |
| 3 | |
| 4 | #include "IWidget.h" |
| 5 | |
| 6 | /** |
| 7 | * Empty place with width and height. |
| 8 | */ |
| 9 | class WiSpace : public IWidget { |
| 10 | private: |
| 11 | int m_w; |
| 12 | int m_h; |
| 13 | public: |
| 14 | WiSpace(int width, int height) : m_w(width), m_h(height) {} |
| 15 | virtual int getW() const { return m_w; } |
| 16 | virtual int getH() const { return m_h; } |
| 17 | |
| 18 | virtual void drawOn(SDL_Surface * /*screen*/) {} |
| 19 | }; |
| 20 | |
| 21 | #endif |