FTXUI 6.1.9
C++ functional terminal UI.
Loading...
Searching...
No Matches
style_underlined.cpp
Go to the documentation of this file.
1// 版權所有 2020 Arthur Sonzogni. 保留所有權利。
2// 本原始碼的使用受 MIT 授權條款約束,該條款可在 LICENSE 檔案中找到。
3#include <ftxui/dom/elements.hpp> // 用於 text, operator|, underlined, 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
10int main() {
11 using namespace ftxui;
12 auto document = //
13 hbox({
14 text("這段文字是 "),
15 text("加底線"),
16 text("。你喜歡它嗎?"),
17 });
18 auto screen = Screen::Create(Dimension::Full(), Dimension::Fit(document));
19 Render(screen, document);
20 screen.Print();
21
22 return 0;
23}
void Render(Screen &screen, const Element &element)
在 ftxui::Screen 上顯示元素。
Definition node.cpp:82
FTXUI 的 ftxui:: 命名空間
Definition animation.hpp:10
int main()