13class DBox :
public Node {
15 explicit DBox(
Elements children) :
Node(std::move(children)) {}
17 void ComputeRequirement()
override {
26 child->ComputeRequirement();
39 void SetBox(Box box)
override {
53 return std::make_shared<DBox>(std::move(children_));
virtual void SetBox(Box box)
Assign a position and a dimension to an element for drawing.
std::shared_ptr< Node > Element
std::vector< Element > Elements
Element dbox(Elements)
Stack several element on top of each other.