FTXUI/src/ftxui/dom/node_decorator.cpp

20 lines
450 B
C++
Raw Normal View History

2020-04-20 03:00:37 +08:00
// Copyright 2020 Arthur Sonzogni. All rights reserved.
// Use of this source code is governed by the MIT license that can be found in
// the LICENSE file.
2018-10-12 15:23:37 +08:00
#include "ftxui/dom/node_decorator.hpp"
namespace ftxui {
2018-10-12 15:23:37 +08:00
void NodeDecorator::ComputeRequirement() {
Node::ComputeRequirement();
requirement_ = children[0]->requirement();
}
void NodeDecorator::SetBox(Box box) {
Node::SetBox(box);
children[0]->SetBox(box);
}
2020-02-12 04:44:55 +08:00
} // namespace ftxui