13class HFlow :
public Node {
17 void ComputeRequirement()
override {
25 child->ComputeRequirement();
28 void SetBox(Box box)
override {
51 children_box.x_min = x;
53 children_box.y_min = y;
55 child->SetBox(children_box);
76 return std::make_shared<HFlow>(std::move(children));
virtual void SetBox(Box box)
Assign a position and a dimension to an element for drawing.
Requirement requirement()
std::shared_ptr< Node > Element
Element hflow(Elements)
A container displaying elements horizontally one by one.
std::vector< Element > Elements