FTXUI  0.8.1
C++ functional terminal UI.
node_decorator.cpp
Go to the documentation of this file.
1 #include <memory> // for __shared_ptr_access
2 #include <vector> // for __alloc_traits<>::value_type, vector
3 
5 #include "ftxui/dom/requirement.hpp" // for Requirement
6 #include "ftxui/screen/box.hpp" // for Box
7 
8 namespace ftxui {
9 
12  requirement_ = children_[0]->requirement();
13 }
14 
16  Node::SetBox(box);
17  children_[0]->SetBox(box);
18 }
19 
20 } // namespace ftxui
21 
22 // Copyright 2020 Arthur Sonzogni. All rights reserved.
23 // Use of this source code is governed by the MIT license that can be found in
24 // the LICENSE file.
ftxui::Node::SetBox
virtual void SetBox(Box box)
Assign a position and a dimension to an element for drawing.
Definition: node.cpp:21
ftxui::Box
Definition: box.hpp:6
ftxui
Definition: captured_mouse.hpp:6
ftxui::Node::children_
Elements children_
Definition: node.hpp:39
box.hpp
requirement.hpp
node_decorator.hpp
ftxui::NodeDecorator::SetBox
void SetBox(Box box) override
Assign a position and a dimension to an element for drawing.
Definition: node_decorator.cpp:15
ftxui::Node::requirement_
Requirement requirement_
Definition: node.hpp:40
ftxui::Node::ComputeRequirement
virtual void ComputeRequirement()
Compute how much space an elements needs.
Definition: node.cpp:14
ftxui::NodeDecorator::ComputeRequirement
void ComputeRequirement() override
Compute how much space an elements needs.
Definition: node_decorator.cpp:10