FTXUI
6.1.9
C++ functional terminal UI.
载入中...
搜索中...
未找到
style_dim.cpp
浏览该文件的文档.
1
// 版权所有 2020 Arthur Sonzogni。保留所有权利。
2
// 本源代码的使用受 MIT 许可证的约束,该许可证可在 LICENSE 文件中找到。
3
#include <
ftxui/dom/elements.hpp
>
// 用于 text, operator|, dim, Fit, hbox, Element
4
#include <
ftxui/screen/screen.hpp
>
// 用于 Full, Screen
5
#include <memory>
// 用于 allocator
6
7
#include "
ftxui/dom/node.hpp
"
// 用于 Render
8
#include "
ftxui/screen/color.hpp
"
// 用于 ftxui
9
10
int
main
() {
11
using namespace
ftxui
;
12
auto
document =
//
13
hbox({
14
text(
"This text is "
),
15
text(
"dim"
) | dim,
16
text(
". Do you like it?"
),
17
});
18
auto
screen = Screen::Create(Dimension::Full(), Dimension::Fit(document));
19
Render(screen, document);
20
screen.Print();
21
22
return
0;
23
}
color.hpp
elements.hpp
ftxui
#include "ftxui/component/component_base.hpp" // 用于 ComponentBase
定义
animation.hpp:9
node.hpp
screen.hpp
main
int main()
定义
style_dim.cpp:10