FTXUI 6.1.9
C++ functional terminal UI.
Loading...
Searching...
No Matches
border_style.cpp
Go to the documentation of this file.
1// Copyright 2020 Arthur Sonzogni. 全著作権所有。
2// このソースコードの使用は、以下にあるMITライセンスに準拠します。
3// LICENSEファイル。
4#include <ftxui/dom/elements.hpp> // for operator|, text, Element, Fit, borderDouble, borderHeavy, borderLight, borderRounded, vbox
5#include <ftxui/screen/screen.hpp> // for Screen
6#include <iostream> // for endl, cout, ostream
7#include <memory> // for allocator
8
9#include "ftxui/dom/node.hpp" // for Render
10#include "ftxui/screen/color.hpp" // for ftxui
11
12int main() {
13 using namespace ftxui;
14
15 auto document = vbox({
16 text("borderLight") | borderLight,
17 text("borderDashed") | borderDashed,
18 text("borderHeavy") | borderHeavy,
19 text("borderDouble") | borderDouble,
20 text("borderRounded") | borderRounded,
21 });
22
23 auto screen =
24 Screen::Create(Dimension::Fit(document), Dimension::Fit(document));
25 Render(screen, document);
26 screen.Print();
27 std::cout << std::endl;
28}
int main()
Element borderDouble(Element child)
要素の周囲に二重線のボーダーを描画します。
Element borderDashed(Element child)
要素の周囲に破線のボーダーを描画します。
Element borderRounded(Element child)
要素の周囲に角の丸いボーダーを描画します。
Element borderHeavy(Element child)
要素の周囲に太いボーダーを描画します。
Element borderLight(Element child)
要素の周囲に細いボーダーを描画します。
FTXUI ftxui:: 名前空間
Definition animation.hpp:9