FTXUI
6.1.9
C++ functional terminal UI.
载入中...
搜索中...
未找到
border_style.cpp
浏览该文件的文档.
1
// 版权所有 2020 Arthur Sonzogni。保留所有权利。
2
// 本源代码的使用受 MIT 许可证的约束,该许可证可在 LICENSE 文件中找到。
3
#include <
ftxui/dom/elements.hpp
>
// for operator|, text, Element, Fit, borderDouble, borderHeavy, borderLight, borderRounded, vbox
4
#include <
ftxui/screen/screen.hpp
>
// for Screen
5
#include <iostream>
// for endl, cout, ostream
6
#include <memory>
// for allocator
7
8
#include "
ftxui/dom/node.hpp
"
// for Render
9
#include "
ftxui/screen/color.hpp
"
// for ftxui
10
11
int
main
() {
12
using namespace
ftxui
;
13
14
auto
document = vbox({
15
text(
"borderLight"
) |
borderLight
,
16
text(
"borderDashed"
) |
borderDashed
,
17
text(
"borderHeavy"
) |
borderHeavy
,
18
text(
"borderDouble"
) |
borderDouble
,
19
text(
"borderRounded"
) |
borderRounded
,
20
});
21
22
auto
screen =
23
Screen::Create(Dimension::Fit(document), Dimension::Fit(document));
24
Render(screen, document);
25
screen.Print();
26
std::cout << std::endl;
27
}
main
int main()
定义
border_style.cpp:11
color.hpp
elements.hpp
borderDouble
Element borderDouble(Element child)
在元素周围绘制双线边框。
定义
src/ftxui/dom/border.cpp:405
borderDashed
Element borderDashed(Element child)
在元素周围绘制虚线边框。
定义
src/ftxui/dom/border.cpp:300
borderRounded
Element borderRounded(Element child)
在元素周围绘制圆角边框。
定义
src/ftxui/dom/border.cpp:440
borderHeavy
Element borderHeavy(Element child)
在元素周围绘制粗边框。
定义
src/ftxui/dom/border.cpp:370
borderLight
Element borderLight(Element child)
在元素周围绘制细边框。
定义
src/ftxui/dom/border.cpp:335
ftxui
#include "ftxui/component/component_base.hpp" // 用于 ComponentBase
定义
animation.hpp:9
node.hpp
screen.hpp