mirror of
https://github.com/ArthurSonzogni/FTXUI.git
synced 2025-05-06 17:21:13 +08:00
16 lines
293 B
C++
16 lines
293 B
C++
#include "ftxui/dom/node_decorator.hpp"
|
|
|
|
namespace ftxui {
|
|
|
|
void NodeDecorator::ComputeRequirement() {
|
|
Node::ComputeRequirement();
|
|
requirement_ = children[0]->requirement();
|
|
}
|
|
|
|
void NodeDecorator::SetBox(Box box) {
|
|
Node::SetBox(box);
|
|
children[0]->SetBox(box);
|
|
}
|
|
|
|
} // namespace ftxui
|