Debian Codegraph @

phoenix/core/layout/vertical-layout.hpp

raw
1 struct VerticalLayout : public Layout {
2 void append(Sizable& sizable, Size size, unsigned spacing = 0);
3 void append(Sizable& sizable);
4 Size minimumSize();
5 void remove(Sizable& sizable);
6 void reset();
7 void setAlignment(double alignment);
8 void setEnabled(bool enabled = true);
9 void setGeometry(Geometry geometry);
10 void setMargin(unsigned margin);
11 void setVisible(bool visible = true);
12 void synchronizeLayout();
13 ~VerticalLayout();
14
15 //private:
16 struct State {
17 double alignment = 0.0;
18 unsigned margin = 0;
19 } state;
20
21 struct Children {
22 Sizable* sizable;
23 unsigned width, height, spacing;
24 };
25 nall::vector<Children> children;
26 };