FTXUI 6.1.9
C++ functional terminal UI.
Loading...
Searching...
No Matches
node_decorator.cpp
Go to the documentation of this file.
1// Copyright 2020 Arthur Sonzogni. All rights reserved.
2// Use of this source code is governed by the MIT license that can be found in
3// the LICENSE file.
4#include <ftxui/dom/node.hpp> // for Node, Elements
5
7#include "ftxui/dom/requirement.hpp" // for Requirement
8#include "ftxui/screen/box.hpp" // for Box
9
10namespace ftxui {
11
16
18 Node::SetBox(box);
19 children_[0]->SetBox(box);
20}
21
22} // namespace ftxui
void SetBox(Box box) override
為元素分配繪圖位置和尺寸。
void ComputeRequirement() override
計算元素所需的空間大小。
Elements children_
Definition node.hpp:74
virtual void SetBox(Box box)
為元素分配繪圖位置和尺寸。
Definition node.cpp:40
Requirement requirement_
Definition node.hpp:75
virtual void ComputeRequirement()
計算元素所需的空間大小。
Definition node.cpp:19
Box 是一個表示二維空間中矩形區域的結構。
Definition box.hpp:14
FTXUI 的 ftxui:: 命名空間
Definition animation.hpp:10