Debian Codegraph @

src/widget/VBox.h

raw
1 #ifndef HEADER_VBOX_H
2 #define HEADER_VBOX_H
3
4 #include "WiBox.h"
5
6 /**
7 * Vertical box.
8 */
9 class VBox : public WiBox {
10 private:
11 int m_w;
12 int m_h;
13 bool m_centered;
14 public:
15 VBox();
16 void enableCentered() { m_centered = true; }
17 void recenter() { setShift(m_shift); }
18
19 virtual int getW() const { return m_w; }
20 virtual int getH() const { return m_h; }
21 virtual void addWidget(IWidget *new_widget);
22 virtual void setShift(const V2 &shift);
23 };
24
25 #endif