src/widget/HBox.h
raw| 1 | #ifndef HEADER_HBOX_H |
| 2 | #define HEADER_HBOX_H |
| 3 | |
| 4 | #include "WiBox.h" |
| 5 | |
| 6 | /** |
| 7 | * Horizontal box. |
| 8 | */ |
| 9 | class HBox : public WiBox { |
| 10 | private: |
| 11 | int m_w; |
| 12 | int m_h; |
| 13 | public: |
| 14 | HBox(); |
| 15 | virtual int getW() const { return m_w; } |
| 16 | virtual int getH() const { return m_h; } |
| 17 | virtual void addWidget(IWidget *new_widget); |
| 18 | virtual void setShift(const V2 &shift); |
| 19 | }; |
| 20 | |
| 21 | #endif |