FTXUI
6.1.9
C++ functional terminal UI.
Loading...
Searching...
No Matches
examples/dom/border.cpp
Go to the documentation of this file.
1
// Copyright 2020 Arthur Sonzogni. All rights reserved.
2
// このソースコードの使用は、LICENSEファイルにあるMITライセンスに準拠します。
3
#include <stdlib.h>
// for EXIT_SUCCESS
4
#include <
ftxui/dom/elements.hpp
>
// for text, operator|, vbox, border, Element, Fit, hbox
5
#include <
ftxui/screen/screen.hpp
>
// for Full, Screen
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
auto
document =
//
14
hbox({
15
vbox({
16
text(
"Line 1"
),
17
text(
"Line 2"
),
18
text(
"Line 3"
),
19
}) | border,
20
21
vbox({
22
text(
"Line 4"
),
23
text(
"Line 5"
),
24
text(
"Line 6"
),
25
}) | border,
26
27
vbox({
28
text(
"Line 7"
),
29
text(
"Line 8"
),
30
text(
"Line 9"
),
31
}) | border,
32
});
33
auto
screen = Screen::Create(Dimension::Full(), Dimension::Fit(document));
34
Render(screen, document);
35
screen.Print();
36
return
EXIT_SUCCESS;
37
}
color.hpp
elements.hpp
main
int main()
Definition
examples/component/button.cpp:33
ftxui
FTXUI ftxui:: 名前空間
Definition
animation.hpp:9
node.hpp
screen.hpp