mirror of
https://github.com/ArthurSonzogni/FTXUI.git
synced 2025-05-06 09:13:48 +08:00
25 lines
636 B
C++
25 lines
636 B
C++
#include <memory> // for __shared_ptr_access
|
|
#include <vector> // for vector
|
|
|
|
#include "ftxui/dom/node_decorator.hpp"
|
|
#include "ftxui/dom/requirement.hpp" // for Requirement
|
|
#include "ftxui/screen/box.hpp" // for Box
|
|
|
|
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
|
|
|
|
// 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.
|