FTXUI
6.1.9
C++ functional terminal UI.
Loading...
Searching...
No Matches
style_underlined.cpp
Go to the documentation of this file.
1
// Copyright 2020 Arthur Sonzogni. Todos los derechos reservados.
2
// El uso de este código fuente se rige por la licencia MIT que se puede encontrar en
3
// el archivo LICENSE.
4
#include <
ftxui/dom/elements.hpp
>
// for text, operator|, underlined, Fit, hbox, Element
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
text(
"This text is "
),
16
text(
"underlined"
) | underlined,
17
text(
". Do you like it?"
),
18
});
19
auto
screen
= Screen::Create(Dimension::Full(), Dimension::Fit(document));
20
Render(
screen
, document);
21
screen
.Print();
22
23
return
0;
24
}
color.hpp
screen
auto screen
Definition
composition.cpp:56
elements.hpp
hbox
return hbox({ text(std::to_string(int(progress *100))+"% ")|size(WIDTH, EQUAL, 5), gauge(progress), })
ftxui
El espacio de nombres ftxui:: de FTXUI.
Definition
animation.hpp:10
node.hpp
screen.hpp
main
int main()
Definition
style_underlined.cpp:11