FTXUI
6.1.9
C++ functional terminal UI.
载入中...
搜索中...
未找到
box_helper.hpp
浏览该文件的文档.
1
// 版权所有 2021 Arthur Sonzogni。保留所有权利。
2
// 此源代码的使用受 MIT 许可证的约束,该许可证可在
3
// LICENSE 文件中找到。
4
#ifndef FTXUI_DOM_BOX_HELPER_HPP
5
#define FTXUI_DOM_BOX_HELPER_HPP
6
7
#include <vector>
8
#include "
ftxui/dom/requirement.hpp
"
9
10
namespace
ftxui::box_helper
{
11
12
struct
Element
{
13
// 输入:
14
int
min_size
= 0;
15
int
flex_grow = 0;
16
int
flex_shrink = 0;
17
18
// 输出;
19
int
size = 0;
20
};
21
22
void
Compute
(std::vector<Element>* elements,
int
target_size);
23
}
// namespace ftxui::box_helper
24
25
#endif
/* 包含守卫结束:FTXUI_DOM_BOX_HELPER_HPP */
ftxui::box_helper
定义
box_helper.cpp:9
ftxui::box_helper::Compute
void Compute(std::vector< Element > *elements, int target_size)
定义
box_helper.cpp:65
requirement.hpp
ftxui::box_helper::Element
定义
box_helper.hpp:12
ftxui::box_helper::Element::min_size
int min_size
定义
box_helper.hpp:14