FTXUI 6.1.9
C++ functional terminal UI.
Loading...
Searching...
No Matches
style_inverted.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> // para texto, operador|, invertido, Ajustar, hbox, Elemento
5#include <ftxui/screen/screen.hpp> // para Completo, Pantalla
6#include <memory> // para asignador
7
8#include "ftxui/dom/node.hpp" // para Renderizar
9#include "ftxui/screen/color.hpp" // para ftxui
10
11int main() {
12 using namespace ftxui;
13 auto document = hbox({
14 text("Este texto esta "),
15 text("invertido") | inverted,
16 text(". Te gusta?"),
17 });
18 auto screen = Screen::Create(Dimension::Full(), Dimension::Fit(document));
19 Render(screen, document);
20 screen.Print();
21
22 return 0;
23}
auto screen
return hbox({ text(std::to_string(int(progress *100))+"% ")|size(WIDTH, EQUAL, 5), gauge(progress), })
El espacio de nombres ftxui:: de FTXUI.
Definition animation.hpp:10
int main()