FTXUI 6.1.9
C++ functional terminal UI.
Loading...
Searching...
No Matches
examples/dom/style_inverted.cpp
// Copyright 2020 Arthur Sonzogni. Todos los derechos reservados.
// El uso de este código fuente se rige por la licencia MIT que se puede encontrar en
// el archivo LICENSE.
#include <ftxui/dom/elements.hpp> // para texto, operador|, invertido, Ajustar, hbox, Elemento
#include <ftxui/screen/screen.hpp> // para Completo, Pantalla
#include <memory> // para asignador
#include "ftxui/dom/node.hpp" // para Renderizar
#include "ftxui/screen/color.hpp" // para ftxui
int main() {
using namespace ftxui;
auto document = hbox({
text("Este texto esta "),
text("invertido") | inverted,
text(". Te gusta?"),
});
auto screen = Screen::Create(Dimension::Full(), Dimension::Fit(document));
Render(screen, document);
screen.Print();
return 0;
}
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