FTXUI 6.1.9
C++ functional terminal UI.
Loading...
Searching...
No Matches
vbox_hbox.cpp
Go to the documentation of this file.
1// Copyright 2020 Arthur Sonzogni. 無断複写・転載を禁じます。
2// このソースコードの使用は、
3// LICENSEファイルにあるMITライセンスによって管理されています。
4#include <stdio.h> // getcharのため
5#include <ftxui/dom/elements.hpp> // filler, text, hbox, vboxのため
6#include <ftxui/screen/screen.hpp> // Full, Screenのため
7#include <memory> // アロケータのため
8
9#include "ftxui/dom/node.hpp" // Renderのため
10#include "ftxui/screen/color.hpp" // ftxuiのため
11
12int main() {
13 using namespace ftxui;
14 auto document = //
15 vbox({
16 hbox({
17 text("north-west"),
18 filler(),
19 text("north-east"),
20 }),
21 filler(),
22 hbox({
23 filler(),
24 text("center"),
25 filler(),
26 }),
27 filler(),
28 hbox({
29 text("south-west"),
30 filler(),
31 text("south-east"),
32 }),
33 });
34 auto screen = Screen::Create(Dimension::Full());
35 Render(screen, document);
36 screen.Print();
37 getchar();
38
39 return 0;
40}
FTXUI ftxui:: 名前空間
Definition animation.hpp:9
int main()
Definition vbox_hbox.cpp:12