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. All rights reserved.
2
// Use of this source code is governed by the MIT license that can be found in
3
// the LICENSE file.
4
#include <stdio.h>
// for getchar
5
#include <
ftxui/dom/elements.hpp
>
// for filler, text, hbox, vbox
6
#include <
ftxui/screen/screen.hpp
>
// for Full, Screen
7
#include <memory>
// for allocator
8
9
#include "
ftxui/dom/node.hpp
"
// for Render
10
#include "
ftxui/screen/color.hpp
"
// for ftxui
11
12
int
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
}
color.hpp
elements.hpp
ftxui
The FTXUI ftxui:: namespace.
Definition
animation.hpp:10
node.hpp
screen.hpp
main
int main()
Definition
vbox_hbox.cpp:12
examples
dom
vbox_hbox.cpp
Generated by
1.12.0