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. 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 <
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
12
int
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
}
main
int main()
Definition
border_style.cpp:12
color.hpp
elements.hpp
ftxui
The FTXUI ftxui:: namespace.
Definition
animation.hpp:10
node.hpp
screen.hpp
examples
dom
border_style.cpp
Generated by
1.12.0